- abs
Vector!(T, n) abs(Vector!(T, n) vector)
Undocumented in source. Be warned that the author may not have intended to support it.
- alignOnAxis
T alignOnAxis(T objSize, Alignment alignment, T areaSize)
Returns offset to add to object position
- distance
T distance(Vector!(T, 2) a, Vector!(T, 2) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- divCeil
T divCeil(T a, T b)
Undocumented in source. Be warned that the author may not have intended to support it.
- isAlmostZero
bool isAlmostZero(Vector2f v)
Undocumented in source. Be warned that the author may not have intended to support it.
- lerpClamp
V lerpClamp(V currentPos, V targetPos, double time)
Undocumented in source. Be warned that the author may not have intended to support it.
- lerpMovement
V lerpMovement(V from, V to, double speed, double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
- nansToZero
void nansToZero(Vector!(T, size) vector)
Undocumented in source. Be warned that the author may not have intended to support it.
- nansToZero
void nansToZero(T[size] vector)
Undocumented in source. Be warned that the author may not have intended to support it.
- nextPOT
T nextPOT(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
- set_flag
T set_flag(T bits, bool flagValue, T flagBit)
Undocumented in source. Be warned that the author may not have intended to support it.
- toggle_bool
bool toggle_bool(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
- toggle_flag
T toggle_flag(T bits, T flagBit)
Undocumented in source. Be warned that the author may not have intended to support it.
- vector_clamp
Vector!(T, n) vector_clamp(Vector!(T, n) vector, Vector!(T, n) lower, Vector!(T, n) upper)
Undocumented in source. Be warned that the author may not have intended to support it.
- vector_max
Vector!(T, n) vector_max(Vector!(T, n) a, Vector!(T, n) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- vector_min
Vector!(T, n) vector_min(Vector!(T, n) a, Vector!(T, n) b)
Undocumented in source. Be warned that the author may not have intended to support it.