Point3D.vec(vec)

Creates a new Point3D from given vector3 / vector4.

Source

Point3D.vec(var vec): this.x = vec.x, this.y = vec.y, this.z = vec.z;