- angle
float angle(Vector2 v)
angle betwenn vector and x-axis (+y +x -> positive)
- distance
float distance(T lhs, T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- dot
float dot(T lhs, T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
- length
float length(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
- lerp
T lerp(T lhs, T rhs, float amount)
Mix amount of lhs with 1-amount of rhs
amount should be between 0 and 1, but can be anything
lerp(lhs, rhs, 0) == lhs
lerp(lhs, rhs, 1) == rhs
- normal
T normal(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
- rotate
Vector2 rotate(Vector2 v, float angle)
Undocumented in source. Be warned that the author may not have intended to support it.
- slide
Vector2 slide(Vector2 v, Vector2 along)
Undocumented in source. Be warned that the author may not have intended to support it.
- transform
Vector3 transform(Vector3 v, Matrix4 mat)
Undocumented in source. Be warned that the author may not have intended to support it.