toVec3

fun toVec3(z: Float = 0f): Vec3

Returns a 3D vector with x and y coordinates of this vector and the given z coordinate.