mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpimath] Remove redundant parentheses in TransformBy() (#8419)
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user