Vector.opCast

Casting to small vectors of the same size.

struct Vector(T, int N)
nothrow @nogc pure const nothrow
U
opCast
(
U
)
()
if (
isVector!U &&
(U._N == _N)
)

Examples

vec4f vf;
vec4d vd = cast!(vec4d)vf;

Meta