|
| enum | YAxisDirection { PositiveUp
, PositiveDown
} |
| |
|
| static bool | IsOrientationClockwise (Point[] polygonAreaPoints, YAxisDirection yad) |
| | Check if polygon boundary is defined using clockwise orientation.
|
| |
| static double | CalculateSignedArea (Point[] polygonAreaPoints) |
| | Calculate signed area of polygon.
|
| |
◆ CalculateSignedArea()
| static double TPG.Utils.PolygonUtils.CalculateSignedArea |
( |
Point[] |
polygonAreaPoints | ) |
|
|
inlinestatic |
Calculate signed area of polygon.
- Parameters
-
| polygonAreaPoints | Polygon boundary |
- Returns
- Positive area if polygon is defined using clockwise orientation of boundary, negative if orientation is counterclockwise. If Y increases upwards, sign is reversed
◆ IsOrientationClockwise()
| static bool TPG.Utils.PolygonUtils.IsOrientationClockwise |
( |
Point[] |
polygonAreaPoints, |
|
|
YAxisDirection |
yad |
|
) |
| |
|
inlinestatic |
Check if polygon boundary is defined using clockwise orientation.
- Parameters
-
| polygonAreaPoints | Polygon boundary |
| yad | Y axis direction |
- Returns
- true if clockwise
The documentation for this class was generated from the following file:
- Src/Libraries/TPG.Utils/PolygonUtils.cs