Model - Plane functions
Every function callable as Plane.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.
| Function | Returns | Description | Arg | Type | Meaning |
|---|---|---|---|---|---|
Plane.distance(plane, query) | number | Signed distance from the plane to a point (+ = normal side). | plane | plane | the plane |
query | point | pointEntity | the query point | |||
Plane.fromPointNormal(point, normal) | plane | Plane {point,normal} through a point with the given normal. | point | point | pointEntity | a point lying on the plane |
normal | vector | the plane's normal (need not be unit; it is normalized) | |||
Plane.normal(plane) | vector | The plane's unit normal. | plane | plane | the plane |
Plane.point(plane) | point | The point on the plane (as passed to fromPointNormal). | plane | plane | the plane |