mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] Add Rotation2d.fromRadians factory (#4178)
This commit is contained in:
@@ -15,8 +15,8 @@ class Rotation2dTest {
|
||||
|
||||
@Test
|
||||
void testRadiansToDegrees() {
|
||||
var rot1 = new Rotation2d(Math.PI / 3);
|
||||
var rot2 = new Rotation2d(Math.PI / 4);
|
||||
var rot1 = Rotation2d.fromRadians(Math.PI / 3);
|
||||
var rot2 = Rotation2d.fromRadians(Math.PI / 4);
|
||||
|
||||
assertAll(
|
||||
() -> assertEquals(rot1.getDegrees(), 60.0, kEpsilon),
|
||||
|
||||
Reference in New Issue
Block a user