Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
enmath2d.c
Go to the documentation of this file.
5
6//-----------------------------------------------------------------------------
7
10{
12 Clockwise, // 1
13 Invalid // 2
14}
15
16
17class Math2D
18{
19 private void Math2D();
20 private void ~Math2D();
21
26 static proto bool IsPointInPolygonXZ(notnull array<vector> polygon, vector point);
28 static proto bool IsPointInTriangleXZ(vector p1, vector p2, vector p3, vector point);
35 static proto bool IsPointInPolygon(notnull array<float> polygon, float x, float y);
41}
42
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
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()
CounterClockwise
Definition enmath2d.c:0
void ~Math2D()
static proto bool IsPointInPolygonXZ(notnull array< vector > polygon, vector point)
Check if a point is inside polygon.
Invalid
Definition enmath2d.c:3
Clockwise
Definition enmath2d.c:1
static proto WindingOrder TriangleWindingXZ(vector a, vector b, vector c)
Determines winding order of triangle given by points a, b, c.
static proto bool IsPointInPolygon(notnull array< float > polygon, float x, float y)
Check if a point is inside polygon.
WindingOrder
exposed from C++ (do not change)
Definition enmath2d.c:10
Icon x
Icon y