mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
@@ -206,6 +206,6 @@ public class Rotation2d implements Interpolatable<Rotation2d> {
|
||||
@Override
|
||||
@SuppressWarnings("ParameterName")
|
||||
public Rotation2d interpolate(Rotation2d endValue, double t) {
|
||||
return new Rotation2d(MathUtil.interpolate(this.getRadians(), endValue.getRadians(), t));
|
||||
return plus(endValue.minus(this).times(MathUtil.clamp(t, 0, 1)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user