line.pointAt
The point at a normalised parameter along a segment.
Usage
Line.pointAt(l: Line, t: number): Point3Parameters
lLineThe segment. Required. In model.
tnumber0 gives
from, 1 givesto; outside [0, 1] extrapolates along the line. Required. In normalised.
Returns
The point from + (to − from) · t; NaN when a coordinate is NaN or two infinities cancel.
Example
Line.pointAt(Line.of(Point3.origin, Point3.of(4, 0, 0)), 0.5) // → { x: 2, y: 0, z: 0 }