|
|
Title | Find the orientation of a polygon (clockwise or counterclockwise) |
Keywords | polygon, orientation, clockwise, counterclockwise |
Categories | Graphics |
|
|
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.
|
|
|
|
|
|