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

lineToConstantHeading

fun lineToConstantHeading(endPosition: Vector2d, velConstraintOverride: TrajectoryVelocityConstraint?, accelConstraintOverride: TrajectoryAccelerationConstraint?): TrajectoryBuilder (source)

Adds a line segment with constant heading interpolation.

Parameters

endPosition - end position

constraintsOverride - segment-specific constraints