lerpPose2d
Linearly interpolates between two Pose2d objects.
This function calculates a new Pose2d object that lies between the start and end Pose2d objects based on the provided interpolation parameter t
. The t
parameter determines how far along the path from start
to end
the resulting Pose2d will be.
Return
A new Pose2d that is linearly interpolated between start
and end
.
Parameters
start
The starting Pose2d.
end
The ending Pose2d.
t
The interpolation parameter, where 0.0 returns start
, 1.0 returns end
, and values in between return a Pose2d linearly interpolated between start
and end
.
Throws
if t
is not in the range 0.0, 1.0.