Vector.opCast

Casting to small vectors of the same size.

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

Examples

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

Meta