DayZ 1.26
DayZ Explorer by KGB
|
Перечисления | |
enum | WindingOrder |
exposed from C++ (do not change) Подробнее... | |
Функции | |
enum WindingOrder | Math2D () |
void | ~Math2D () |
static proto bool | IsPointInPolygonXZ (notnull array< vector > polygon, vector point) |
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 . | |
static proto bool | IsPointInPolygon (notnull array< float > polygon, float x, float y) |
static proto WindingOrder | TriangleWindingXZ (vector a, vector b, vector c) |
Переменные | |
CounterClockwise | |
Clockwise | |
Invalid | |
exposed from C++ (do not change)
|
staticprivate |
Check if a point is inside polygon
.
polygon | Must be an array of Vector2, every two consecutive floats represent one point in polygon. |
x | X coordinate of point to test |
y | Y coordinate of point to test |
|
staticprivate |
Check if a point
is inside polygon
. Takes polygon and point only in the XZ plane.
|
staticprivate |
Check if point
is inside triangle specified by points p1
, p2
and p3
.
enum WindingOrder Math2D | ( | ) |
Используется в CfgPlayerRestrictedAreaHandler::IsPointInAreaPolygon().
Determines winding order of triangle given by points a
, b
, c
. If the triangles form a line, WindingOrder.Invalid is returned.
Clockwise |
CounterClockwise |
Invalid |