Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2001 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated