addLine

fun addLine(endPosition: Vector2d, headingInterpolation: HeadingInterpolation = TangentHeading, velConstraintOverride: TrajectoryVelocityConstraint, accelConstraintOverride: TrajectoryAccelerationConstraint = baseAccelConstraint): TrajectoryBuilder

Adds a line segment with the specified heading interpolation.

Parameters

endPosition

end position

headingInterpolation

desired heading interpolation

constraintsOverride

segment-specific constraints

See also