line.length
The length of a segment.
Usage
Line.length(l: Line): numberParameters
lLineThe segment. Required. In model.
Returns
The distance from from to to in model units; 0 for a degenerate segment; NaN when a coordinate is NaN or two infinities cancel.
Use instead
point3.distance: you have two points and noLine
Example
Line.length(Line.of(Point3.origin, Point3.of(3, 4, 0))) // → 5