Constructs the vector. If a single value is passed the vector, the vector will be cleared with this value. If a vector with a higher dimension is passed the vector will hold the first values up to its dimension. If mixed types are passed they will be joined together (allowed types: vector, static array, vt).
Sets all values of the vector to value.
Normalizes the vector.
Updates the vector with the values from other.
Returns the current vector formatted as string, useful for printing the vector.
Returns true if all values are not nan and finite, otherwise false.
Returns the magnitude of the vector.
Returns the squared magnitude of the vector.
Returns a normalized copy of the current vector.
Implements dynamic swizzling.
Returns a pointer to the coordinates.
Holds the dimension of the vector.
canonical basis for Euclidian space
canonical basis for Euclidian space
canonical basis for Euclidian space
Holds all coordinates, length conforms dimension.
all values get stored as this type
alias Vector!(int, 3) vec3i; alias Vector!(float, 4) vec4; alias Vector!(real, 2) vec2r;
Base template for all vector-types.