toIVec

fnIVec2 toIVec(Vec2 vec)

Converts a Vec2 to an IVec2 by truncating each component to an integer.

fnIVec3 toIVec(Vec3 vec)

Converts a Vec3 to an IVec3 by truncating each component to an integer.

fnIVec4 toIVec(Vec4 vec)

Converts a Vec4 to an IVec4 by truncating each component to an integer.