Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleFind the orientation of a polygon (clockwise or counterclockwise)
Keywordspolygon, orientation, clockwise, counterclockwise
CategoriesGraphics
 
This program calculate the polygon's signed area. The result is negative if the polygon is oriented clockwise. See the HowTo Calculate a polygon's area for information on finding a polygon's signed area.
 
' Return True if the polygon is oriented clockwise.
Public Function PolygonIsOrientedClockwise() As Boolean
    PolygonIsOrientedClockwise = SignedPolygonArea() < 0
End Function
 
For more information on graphics programming in Visual Basic, see my book Visual Basic Graphics Programming.
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated