class Math2DSource
Part of Math2D library
Constructors 2
private void Math2D()private void ~Math2D()Methods 4
Check if a `point` is inside `polygon`. Takes polygon and point only in the XZ plane.
Referenced by DynamicMusicPlayer.PlayerInsideOfLocationFilter()
Check if `point` is inside triangle specified by points `p1`, `p2` and `p3`.
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
Referenced by CfgPlayerRestrictedAreaHandler.IsPointInAreaPolygon()
static proto WindingOrder TriangleWindingXZ(vector a, vector b, vector c)Determines winding order of triangle given by points `a`, `b`, `c`. If the triangles form a line, WindingOrder.Invalid is returned.