DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Math2D library

Перечисления

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
 

Подробное описание

Перечисления

◆ WindingOrder

exposed from C++ (do not change)

10{
12 Clockwise, // 1
13 Invalid // 2
14}
CounterClockwise
Definition EnMath2D.c:0
Invalid
Definition EnMath2D.c:3
Clockwise
Definition EnMath2D.c:1

Функции

◆ IsPointInPolygon()

static proto bool IsPointInPolygon ( notnull array< float > polygon,
float x,
float y )
staticprivate

Check if a point is inside polygon.

Аргументы
polygonMust be an array of Vector2, every two consecutive floats represent one point in polygon.
xX coordinate of point to test
yY coordinate of point to test

◆ IsPointInPolygonXZ()

static proto bool IsPointInPolygonXZ ( notnull array< vector > polygon,
vector point )
staticprivate

Check if a point is inside polygon. Takes polygon and point only in the XZ plane.

◆ IsPointInTriangleXZ()

static proto bool IsPointInTriangleXZ ( vector p1,
vector p2,
vector p3,
vector point )
staticprivate

Check if point is inside triangle specified by points p1, p2 and p3.

◆ Math2D()

◆ TriangleWindingXZ()

static proto WindingOrder TriangleWindingXZ ( vector a,
vector b,
vector c )
staticprivate

Determines winding order of triangle given by points a, b, c. If the triangles form a line, WindingOrder.Invalid is returned.

◆ ~Math2D()

void ~Math2D ( )
private

Переменные

◆ Clockwise

Clockwise

◆ CounterClockwise

CounterClockwise

◆ Invalid

Invalid