Re: Point order
- To: mathgroup at smc.vnet.net
- Subject: [mg30383] Re: [mg30347] Point order
- From: Adriano Pascoletti <pascolet at dimi.uniud.it>
- Date: Tue, 14 Aug 2001 03:45:34 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
>Hello all,
>If I draw a polygone of n sides, how do I know if the points are drawn
>in clockwise order or not?
>Thanks
>Rafael
Rafael,
the function CCWOrientedQ[{v1,v2,...}] in
http://www.mathsource.com/Content/Enhancements/Geometry/0211-497
takes a simple polygon with vertices {v1,v2,...} and returns True
iff the list {v1,v2,...} is counterclockwise oriented.
Adriano Pascoletti