PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Math2D library

Enumerations

enum  WindingOrder
 exposed from C++ (do not change) More...
 

Functions

enum WindingOrder Math2D ()
 
private 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)
 

Variables

 CounterClockwise
 
 Clockwise
 
 Invalid
 

Detailed Description

Enumeration Type Documentation

◆ WindingOrder

exposed from C++ (do not change)

Function Documentation

◆ IsPointInPolygon()

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

Check if a point is inside polygon.

Parameters
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 
)
static

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 
)
static

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 
)
static

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

◆ ~Math2D()

private void ~Math2D ( )

Variable Documentation

◆ Clockwise

Clockwise

◆ CounterClockwise

CounterClockwise

◆ Invalid

Invalid