SYS_Math class
System / math class
Signature
class SYS_MathRemarks
Provides polygon geometry calculation methods, supporting discrete point coordinates and TPCB_PolygonSourceArray polygon data
Methods
Method | Modifiers | Description |
|---|---|---|
Quickly determine whether two BBoxes intersect | ||
Calculate the area of a polygon | ||
Calculate the perimeter of a polygon | ||
Determine whether polygon1 completely contains polygon2 | ||
Determine whether the point is inside the polygon | ||
Calculate the shortest distance from a point to the polygon boundary | ||
Get the minimum bounding rectangle (BBox) of the polygon | ||
Calculate the centroid of the polygon | ||
Calculate the intersection of two polygons | ||
Determine whether two polygons intersect | ||
Rotate the polygon | ||
Scale the polygon | ||
Calculate the difference of two polygons (polygon1 - polygon2) | ||
Translate the polygon | ||
Calculate the union of two polygons | ||
Calculate the symmetric difference (XOR) of two polygons |