gfm.math.vector

Undocumented in source.

Members

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)
max
Vector!(T, N) max(Vector!(T, N) a, Vector!(T, N) b)

Element-wise maximum.

min
Vector!(T, N) min(Vector!(T, N) a, Vector!(T, N) b)

Element-wise minimum.

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