addDisplacementMarker

Adds a marker at the current position of the trajectory.


fun addDisplacementMarker(displacement: Double, callback: MarkerCallback): T

Adds a marker to the trajectory at displacement.


fun addDisplacementMarker(scale: Double, offset: Double, callback: MarkerCallback): T

Adds a marker to the trajectory at scale * path length + offset.


fun addDisplacementMarker(displacement: (Double) -> Double, callback: MarkerCallback): T

Adds a marker to the trajectory at displacement evaluated with path length.