mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpimath] Don't clamp Rotation2d interpolation (#8661)
Extrapolation is also valid.
This commit is contained in:
@@ -374,7 +374,7 @@ public class Rotation2d
|
||||
|
||||
@Override
|
||||
public Rotation2d interpolate(Rotation2d endValue, double t) {
|
||||
return plus(endValue.minus(this).times(Math.clamp(t, 0, 1)));
|
||||
return plus(endValue.minus(this).times(t));
|
||||
}
|
||||
|
||||
/** Rotation2d protobuf for serialization. */
|
||||
|
||||
Reference in New Issue
Block a user