Vector4 toVec4()

Transforms the point to its homogeneous vector4 representation. The w component is set to 1.

Source

Vector4 toVec4() => new Vector4(this.x, this.y, this.z, 1.0);