fletcher.paths.point-on-subpath-segment()

Return the position, velocity and acceleration vectors of a point at parameter value 𝑡[0,1] along the 𝑖th segment of a subpath.

fletcher.paths.point-on-subpath-segment(
  subpath: array,
  segment-index: int,
  segment-t: float,
) -> (array, array, array)

subpath

array

A subpath of the form (start: array, close: bool, segments: array).

segment-index

int

The index of the subpath segment.

segment-t

float

The time parameter of the specified segment, in the interval [0,1].