toVec3

fun toVec3(z: T = zero(this.type)): Vec3<T>

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