![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Enumerations | |
| enum | WindingOrder |
| exposed from C++ (do not change) More... | |
Functions | |
| void | ~Math2D () |
| static proto bool | IsPointInPolygon (notnull array< float > polygon, float x, float y) |
| Check if a point is inside polygon. | |
| static proto bool | IsPointInPolygonXZ (notnull array< vector > polygon, vector point) |
| Check if a point is inside polygon. | |
| static proto bool | IsPointInTriangleXZ (vector p1, vector p2, vector p3, vector point) |
| Check if point is inside triangle specified by points p1, p2 and p3. | |
| enum WindingOrder | Math2D () |
| static proto WindingOrder | TriangleWindingXZ (vector a, vector b, vector c) |
| Determines winding order of triangle given by points a, b, c. | |
Variables | |
| Clockwise | |
| CounterClockwise | |
| Invalid | |
| enum WindingOrder |
exposed from C++ (do not change)
Definition at line 9 of file enmath2d.c.
|
private |
Check if a point is inside polygon.
Takes polygon and point only in the XZ plane.
Check if point is inside triangle specified by points p1, p2 and p3.
| enum WindingOrder Math2D | ( | ) |
Referenced by CfgPlayerRestrictedAreaHandler::IsPointInAreaPolygon(), and PlayerInsideOfLocationFilter().
|
staticprivate |
Determines winding order of triangle given by points a, b, c.
If the triangles form a line, WindingOrder.Invalid is returned.
| Clockwise |
Definition at line 1 of file enmath2d.c.
| CounterClockwise |
Definition at line 0 of file enmath2d.c.
| Invalid |
Definition at line 2 of file enmath2d.c.