toVec

fnVec2 toVec(IVec2 vec)

Converts an IVec2 to a Vec2.

fnVec2 toVec(GVec2!short vec)

Converts a GVec2!short to a Vec2.

fnVec3 toVec(IVec3 vec)

Converts an IVec3 to a Vec3.

fnVec4 toVec(IVec4 vec)

Converts an IVec4 to a Vec4.

fnVec4 toVec(Rgba color)

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