Skip to content
Shapemetry

Model - Axis functions

Every function callable as Axis.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.

FunctionReturnsDescriptionArgTypeMeaning
Axis.direction(axis)vectorThe axis's unit direction.axisaxisthe axis
Axis.fromPointDirection(origin, direction)axisDirected half-line from origin along a unit direction.originpoint | pointEntitythe axis's origin
directionvectorthe axis's direction (normalized; magnitude dropped)
Axis.fromTwoPoints(from, to)axisAxis from one point through another (direction normalized).frompoint | pointEntitythe axis's origin
topoint | pointEntitya second point the axis passes through
Axis.origin(axis)pointThe axis's origin point.axisaxisthe axis
Axis.pointAt(axis, distance)pointPoint on the axis at a distance from the origin.axisaxisthe axis
distancelengtharc-length distance from the origin
Last updated: 📖 1 min readEdit on GitHub