UtilitiesFunctionsgetInterpolatedPathAtDistanceVersion: NextgetInterpolatedPathAtDistance CallablegetInterpolatedPathAtDistance(origin: Point2D, points: Point2D[], targetDistance: number): Point2D[]Builds a path from an origin to the first point reaching a target radial distance. The final point is interpolated between the previous path point and the first point whose distance from the origin is at least targetDistance.Parametersorigin: Point2DStarting point of the path.points: Point2D[]Candidate path points in traversal order.targetDistance: numberDistance from the origin at which to stop the path.Returns Point2D[]Path points ending at the interpolated target distance when reached.
Builds a path from an origin to the first point reaching a target radial distance.
The final point is interpolated between the previous path point and the first point whose distance from the origin is at least
targetDistance.