toVec

fnVec2 toVec(IVec2 vec) @trusted @safe nothrow @nogc

Converts an IVec2 to a Vec2.

fnVec2 toVec(GVec2!short vec) @trusted @safe nothrow @nogc

Converts a GVec2!short to a Vec2.

fnVec3 toVec(IVec3 vec) @trusted @safe nothrow @nogc

Converts an IVec3 to a Vec3.

fnVec4 toVec(IVec4 vec) @trusted @safe nothrow @nogc

Converts an IVec4 to a Vec4.

fnVec4 toVec(Rgba color) @trusted @safe nothrow @nogc

Converts an Rgba color to a Vec4 with components in the order (r, g, b, a).