gfm.math.vector

Undocumented in source.

Members

Aliases

max
deprecated alias max = maxByElem

Element-wise maximum.

min
deprecated alias min = minByElem

Element-wise minimum.

Functions

angleBetween
T angleBetween(Vector!(T, N) a, Vector!(T, N) b)
cross
Vector!(T, 3) cross(Vector!(T, 3) a, Vector!(T, 3) b)
dot
T dot(Vector!(T, N) a, Vector!(T, N) b)
maxByElem
Vector!(T, N) maxByElem(Vector!(T, N) a, Vector!(T, N) b)
Undocumented in source. Be warned that the author may not have intended to support it.
minByElem
Vector!(T, N) minByElem(Vector!(T, N) a, Vector!(T, N) b)
Undocumented in source. Be warned that the author may not have intended to support it.
reflect
Vector!(T, 3) reflect(Vector!(T, 3) a, Vector!(T, 3) b)

3D reflect, like the GLSL function.

Structs

Vector
struct Vector(T, int N)

Generic 1D small vector.

Templates

vec2
template vec2(T)
Undocumented in source.
vec3
template vec3(T)
Undocumented in source.
vec4
template vec4(T)
Undocumented in source.

Meta