Skip to content

SplineNearest

Defined in: sdk/src/spline/curve.ts:24

Where on a curve a point is nearest, and how far from it.

distance: number

Defined in: sdk/src/spline/curve.ts:28

The distance from the query point to the curve.


s: number

Defined in: sdk/src/spline/curve.ts:26

The distance along the curve.


side: number

Defined in: sdk/src/spline/curve.ts:30

Which side of the curve the point is on: the sign of the xz cross product of the curve’s heading and the offset to the point.