evael.utils.math

Undocumented in source.

Public Imports

dlib.math.vector
public import dlib.math.vector;
dlib.math.matrix
public import dlib.math.matrix;
dlib.math.quaternion
public import dlib.math.quaternion;
dlib.math.transformation
public import dlib.math.transformation;
dlib.math.utils
public import dlib.math.utils;

Members

Aliases

PolygonDefinition
alias PolygonDefinition = Array!vec3
Undocumented in source.
ubvec4
alias ubvec4 = Vector!(ubyte, 4)
Undocumented in source.

Functions

getAngle
float getAngle(float deltaX, float deltaY)

Returns angle between two points.

getAngle
float getAngle(vec3 a, vec3 b)

Returns angle between two points.

getDistance
int getDistance(vec2 a, vec2 b)

Returns distance between two points.

getDistance
int getDistance(vec3 a, vec3 b)

Returns distance between two points.

intersect
bool intersect(vec3 p1, vec3 p2, vec3 p3, vec3 p4, vec3 intersection)

Checks if two segments interesect

intersectPolygon
bool intersectPolygon(vec3 p1, vec3 p2, PolygonDefinition polygonVertices, vec3 intersection)

Checks if a ray intersect with polygon

isPointInPolygon
bool isPointInPolygon(vec3 p, PolygonDefinition polygon)

Checks if a point is inside a polygon Note : im using z axis instead of y axis

isPointInTriangle
bool isPointInTriangle(vec3 p, vec3 p0, vec3 p1, vec3 p2)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInTriangle2
bool isPointInTriangle2(vec3 p, vec3 p0, vec3 p1, vec3 p2)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

degToRad
enum degToRad;
Undocumented in source.
pi
enum pi;
Undocumented in source.

Meta