Skip to content
Shapemetry

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.

FunctionReturnsDescriptionArgTypeMeaning
Point.distance(from, to)numberEuclidean distance between two points.frompoint | pointEntityfirst point
topoint | pointEntitysecond point
Point.interpolate(from, to, fraction)pointLinear interpolation from→to at fraction.frompoint | pointEntitystart point
topoint | pointEntityend point
fractionnumber0..1 (0=from, 1=to)
Point.midpoint(from, to)pointMidpoint between two points.frompoint | pointEntityfirst point
topoint | pointEntitysecond point
Point.translate(point, offset)pointTranslate a point by an offset vector.pointpoint | pointEntitypoint to move
offsetvectortranslation vector
Last updated: 📖 1 min readEdit on GitHub