Model - Point functions
Every function callable as Point.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.
| Function | Returns | Description | Arg | Type | Meaning |
|---|---|---|---|---|---|
Point.distance(from, to) | number | Euclidean distance between two points. | from | point | pointEntity | first point |
to | point | pointEntity | second point | |||
Point.interpolate(from, to, fraction) | point | Linear interpolation from→to at fraction. | from | point | pointEntity | start point |
to | point | pointEntity | end point | |||
fraction | number | 0..1 (0=from, 1=to) | |||
Point.midpoint(from, to) | point | Midpoint between two points. | from | point | pointEntity | first point |
to | point | pointEntity | second point | |||
Point.translate(point, offset) | point | Translate a point by an offset vector. | point | point | pointEntity | point to move |
offset | vector | translation vector |