Skip to main content

Function: projectPointOntoPlane()

projectPointOntoPlane(point, planePoint, normal, out): Point3

Projects a world point onto the plane through planePoint with the given normal, along that normal.

Parameters​

• point: Point3

The point to project.

• planePoint: Point3

A point on the target plane.

• normal: Point3

The plane normal. Unit length.

• out: Point3 = ...

Optional destination, to avoid allocating per voxel.

Returns​

Point3

Defined in​

packages/core/src/utilities/voxelSlab/slabMembership.ts:238