[wpimath] Make C++ geometry classes immutable (#3249)

This commit is contained in:
Prateek Machiraju
2021-03-19 16:38:54 -04:00
committed by GitHub
parent da96707dca
commit d3e45c297c
8 changed files with 2 additions and 126 deletions

View File

@@ -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);
}