Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputer314 committed Jan 10, 2025
1 parent 0a2109b commit 26957a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wpimath/src/test/native/cpp/geometry/Pose2dTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ TEST(Pose2dTest, RotateAround) {
const Translation2d point{0_m, 0_m};

const auto rotated = initial.RotateAround(point, Rotation2d{180_deg});

EXPECT_NEAR(-5.0, rotated.X().value(), 1e-9);
EXPECT_NEAR(0.0, rotated.Y().value(), 1e-9);
EXPECT_NEAR(180.0, rotated.Rotation().Degrees().value(), 1e-9);
Expand Down
6 changes: 4 additions & 2 deletions wpimath/src/test/native/cpp/geometry/Pose3dTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

#include <corecrt_math_defines.h>

#include <cmath>

#include <gtest/gtest.h>
#include <wpi/array.h>

#include "frc/geometry/Pose3d.h"
#include <corecrt_math_defines.h>

using namespace frc;

Expand Down Expand Up @@ -88,7 +89,8 @@ TEST(Pose3dTest, RotateAround) {
const Pose3d initial{5_m, 0_m, 0_m, Rotation3d{}};
const Translation3d point{0_m, 0_m, 0_m};

const auto rotated = initial.RotateAround(point, Rotation3d{0_deg, 0_deg, 180_deg});
const auto rotated =
initial.RotateAround(point, Rotation3d{0_deg, 0_deg, 180_deg});

EXPECT_NEAR(-5.0, rotated.X().value(), 1e-9);
EXPECT_NEAR(0.0, rotated.Y().value(), 1e-9);
Expand Down

0 comments on commit 26957a1

Please sign in to comment.