Determine whether a polygon's points are oriented clockwise in C#

This program calculate the polygon's signed area. The result is negative if the polygon is oriented clockwise. See Calculate a polygon's area in C# for more details.
// Return True if the polygon is oriented clockwise.
public bool PolygonIsOrientedClockwise()
{
return (SignedPolygonArea() < 0);
}

   

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments

Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.