plane.signedDistance
The signed distance of a point from a plane, positive on the normal’s side.
Usage
Plane.signedDistance(p: Plane, q: Point3): numberParameters
pPlaneThe plane, with orthonormal right-handed axes (as
Plane.fromFrameandPlane.fromNormalbuild them). Required. In model.qPoint3The point to measure. Required. In model.
Returns
Distance in model units: positive on the side zAxis points to, negative behind, 0 on the plane; NaN for non-finite input.
Example
Plane.signedDistance(Plane.worldXY, Point3.of(5, 5, -2)) // → -2