raymathext

Undocumented in source.

Members

Aliases

Matrix4
alias Matrix4 = Matrix
Undocumented in source.

Functions

angle
float angle(Vector2 v)

angle betwenn vector and x-axis (+y +x -> positive)

cross
Vector3 cross(Vector3 lhs, Vector3 rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
reverse
Rotor3 reverse(Rotor3 r)
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.
rotate
Rotor3 rotate(Rotor3 p, Rotor3 q)

Rotate q by p

rotate
Vector3 rotate(Rotor3 r, Vector3 v)

Rotate v by r

rotation
Rotor3 rotation(Vector3 from, Vector3 to)

Returns a unit rotor that rotates from to to

rotation
Rotor3 rotation(float angle, Bivector3 plane)
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.
wedge
Bivector2 wedge(Vector2 lhs, Vector2 rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
wedge
Bivector3 wedge(Vector3 lhs, Vector3 rhs)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

Linear
mixintemplate Linear()
Undocumented in source.

Structs

Bivector2
struct Bivector2
Undocumented in source.
Bivector3
struct Bivector3

Beware of the field order xy is the first field

Rotor3
struct Rotor3
Undocumented in source.

Meta