line.length

The length of a segment.

Value helperSince 0.3.0

Usage

TypeScript
Line.length(l: Line): number

Parameters

  • lLine

    The 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

Example

TypeScript
Line.length(Line.of(Point3.origin, Point3.of(3, 4, 0))) // → 5

See also