- abs
void abs()
- ceil
void ceil()
- clamp
void clamp(VecType p_min, VecType p_max)
- copyof
VecType copyof()
Undocumented in source. Be warned that the author may not have intended to support it.
- distanceSquaredTo
T distanceSquaredTo(VecType b)
Returns squared distance from vector to b
- distanceTo
T distanceTo(VecType b)
Calculates distance to vector b
- dot
float dot(VecType b)
- floor
void floor()
- isClose
bool isClose(VecType v)
Is vector approximately close to v
- isNormalized
bool isNormalized()
Returns true if vector is normalised
- length
T length()
- lengthSquared
T lengthSquared()
Returns squared vector length
- lerp
void lerp(VecType to, T weight)
Linear interpolates vector
- limitLength
void limitLength(T p_len)
- max
void max(VecType b)
Clamps vector values to max
- min
void min(VecType b)
Clamps vector values to min
- normalize
void normalize()
- opBinary
auto opBinary(Vector!(R, N) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
auto opBinary(R b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinaryRight
auto opBinaryRight(Vector!(R, N) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinaryRight
auto opBinaryRight(R b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opCmp
int opCmp(Vector!(R, N) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Vector!(R, size) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
auto opOpAssign(Vector!(R, N) b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
auto opOpAssign(R b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opUnary
auto opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
- ptr
T* ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
- round
void round()
- sign
void sign()
- snap
void snap(VecType p_step)
- toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
- toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.