core / com.acmerobotics.roadrunner.trajectory / TrajectoryBuilder / splineToConstantHeading

splineToConstantHeading

fun splineToConstantHeading(endPosition: Vector2d, endTangent: Double, velConstraintOverride: TrajectoryVelocityConstraint?, accelConstraintOverride: TrajectoryAccelerationConstraint?): TrajectoryBuilder (source)

Adds a spline segment with constant heading interpolation.

Parameters

endPosition - end position

endTangent - end tangent

constraintsOverride - segment-specific constraints