fun lineToLinearHeading(endPose: Pose2d): T
Adds a line segment with linear heading interpolation.
endPose - end pose
endPose