Moves value
into the range between min
and max
.
Converts an angle from degrees into radians.
Returns the next power of two that is equal to or bigger than the specified number.
Calculates the intersection point between the xy-plane and an infinite line that is defined by two 3D points in the same coordinate system.
Indicates if two float (Number) values are equal, give or take epsilon
.
Calculates if the point p
is inside the triangle a-b-c
.
Returns the larger of the two values. Different to the native Math.max
,
this doesn't create any temporary objects when using the AOT compiler.
Returns the smaller of the two values. Different to the native Math.min
,
this doesn't create any temporary objects when using the AOT compiler.
Returns the smallest value in an array.
Moves a radian angle into the range [-PI, +PI], while keeping the direction intact.
Converts an angle from radians into degrees.
Generated using TypeDoc
A utility class containing methods you might need for math problems.