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

lineTo

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

Adds a line segment with tangent heading interpolation.

Parameters

endPosition - end position

constraintsOverride - segment-specific constraints