sily.vector

Flexible vector template with some math utils.

By default defines glsl style aliases

Members

Aliases

dvec
alias dvec(size_t N) = Vector!(double, N)
dvec2
alias dvec2 = dvec!2
dvec3
alias dvec3 = dvec!3
dvec4
alias dvec4 = dvec!4
ivec
alias ivec(size_t N) = Vector!(int, N)
ivec2
alias ivec2 = ivec!2
ivec3
alias ivec3 = ivec!3
ivec4
alias ivec4 = ivec!4
uvec
alias uvec(size_t N) = Vector!(uint, N)
uvec2
alias uvec2 = uvec!2
uvec3
alias uvec3 = uvec!3
uvec4
alias uvec4 = uvec!4

GLSL style alias

vec
alias vec(T, size_t N) = Vector!(T, N)
alias vec(size_t N) = Vector!(float, N)
vec2
alias vec2 = vec!2
vec3
alias vec3 = vec!3
vec4
alias vec4 = vec!4

GLSL style alias

Structs

Vector
struct Vector(T, size_t N)

Vector structure with data accesible with [N] or swizzling.

Templates

isVector
template isVector(V)

Is V a vector with any size and any type

isVector
template isVector(V, size_t n)

Is V a vector with size n and any type

isVector
template isVector(V, T)

Is V a vector with any size and type T

isVector
template isVector(V, T, size_t N)

Is V a vector with size N and type T

Meta