withLinearHeading

open fun withLinearHeading(startHeading: Rotation2d, endHeading: Rotation2d): HeadingPosePath
open fun withLinearHeading(startHeading: Double, endHeading: Double): HeadingPosePath

Creates a PosePath using this path for position and a linear interpolation between startHeading and endHeading for heading.