toVec4

fun toVec4(z: Float = 0f, w: Float = 0f): Vec4

Returns a 4D vector with x and y coordinates of this vector and the given z and w coordinates.