Vec2 toVec(IVec2 vec)
Converts an IVec2 to a Vec2.
IVec2
Vec2
Vec2 toVec(GVec2!short vec)
Converts a GVec2!short to a Vec2.
GVec2!short
Vec3 toVec(IVec3 vec)
Converts an IVec3 to a Vec3.
IVec3
Vec3
Vec4 toVec(IVec4 vec)
Converts an IVec4 to a Vec4.
IVec4
Vec4
Vec4 toVec(Rgba color)
Converts an Rgba color to a Vec4 with components in the order (r, g, b, a).
Rgba
(r, g, b, a)