Skip to content

Commit 71cd434

Browse files
authored
[wpimath] Don't clamp Rotation2d interpolation (#8661)
Extrapolation is also valid.
1 parent 6910ff1 commit 71cd434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wpimath/src/main/java/org/wpilib/math/geometry/Rotation2d.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public int hashCode() {
374374

375375
@Override
376376
public Rotation2d interpolate(Rotation2d endValue, double t) {
377-
return plus(endValue.minus(this).times(Math.clamp(t, 0, 1)));
377+
return plus(endValue.minus(this).times(t));
378378
}
379379

380380
/** Rotation2d protobuf for serialization. */

0 commit comments

Comments
 (0)