mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Fix Pose3d transformBy rotation type (#4545)
Co-authored-by: Ryan Blue <ryanzblue@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a4054d702f
commit
b1b4c1e9e7
@@ -70,7 +70,7 @@ Pose3d Pose3d::operator/(double scalar) const {
|
||||
|
||||
Pose3d Pose3d::TransformBy(const Transform3d& other) const {
|
||||
return {m_translation + (other.Translation().RotateBy(m_rotation)),
|
||||
m_rotation + other.Rotation()};
|
||||
other.Rotation() + m_rotation};
|
||||
}
|
||||
|
||||
Pose3d Pose3d::RelativeTo(const Pose3d& other) const {
|
||||
|
||||
Reference in New Issue
Block a user