[wpimath] Remove redundant parentheses in TransformBy() (#8419)

This commit is contained in:
Tyler Veness
2025-11-22 20:20:44 -08:00
committed by GitHub
parent 7fdb42b9d9
commit cba939cf43
2 changed files with 2 additions and 2 deletions

View File

@@ -286,7 +286,7 @@ constexpr Transform2d Pose2d::operator-(const Pose2d& other) const {
constexpr Pose2d Pose2d::TransformBy(
const wpi::math::Transform2d& other) const {
return {m_translation + (other.Translation().RotateBy(m_rotation)),
return {m_translation + other.Translation().RotateBy(m_rotation),
other.Rotation() + m_rotation};
}

View File

@@ -314,7 +314,7 @@ constexpr Transform3d Pose3d::operator-(const Pose3d& other) const {
}
constexpr Pose3d Pose3d::TransformBy(const Transform3d& other) const {
return {m_translation + (other.Translation().RotateBy(m_rotation)),
return {m_translation + other.Translation().RotateBy(m_rotation),
other.Rotation() + m_rotation};
}