mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpimath] Make C++ geometry classes immutable (#3249)
This commit is contained in:
committed by
GitHub
parent
da96707dca
commit
d3e45c297c
@@ -39,7 +39,7 @@ TEST(Rotation2dTest, RotateByFromZero) {
|
||||
|
||||
TEST(Rotation2dTest, RotateByNonZero) {
|
||||
auto rot = Rotation2d(90.0_deg);
|
||||
rot += Rotation2d(30.0_deg);
|
||||
rot = rot + Rotation2d(30.0_deg);
|
||||
|
||||
EXPECT_NEAR(rot.Degrees().to<double>(), 120.0, kEpsilon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user