Skip to content
Shapemetry

@huukhanhnguyen/geometry / catalog/plane

catalog/plane

distance()

distance(plane, query): number

Signed distance from the plane to a query point (positive = normal side).

Parameters

plane

Plane

query

Point

Returns

number


elementsOf()

elementsOf(plane): Float64Array

Plane → kernel element buffer — the ONE Plane→Float64Array door codec; every catalog consumer that hands a plane to the kernel (this module's distance, projection's clipMeshToPlane) crosses through here.

Parameters

plane

Plane

Returns

Float64Array


fromPointNormal()

fromPointNormal(point, normal): Plane

Build a plane from a point on it and its normal (normalized).

Parameters

point

Point

normal

Vector

Returns

Plane


normal()

normal(plane): Vector

Parameters

plane

Plane

Returns

Vector


point()

point(plane): Point

The point passed to fromPointNormal (not plane_origin foot-of-perpendicular).

Parameters

plane

Plane

Returns

Point

Last updated: 📖 1 min readEdit on GitHub