From 1586dcf385b027d75bf1d6e4070b3a4e33fa6ff0 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Fri, 24 Apr 2026 01:53:29 -0400 Subject: [PATCH] [wpimath] Fix incorrect C++ return docs in Pose3d and Translation3d (#8793) --- wpimath/src/main/native/include/wpi/math/geometry/Pose3d.hpp | 4 ++-- .../main/native/include/wpi/math/geometry/Translation3d.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wpimath/src/main/native/include/wpi/math/geometry/Pose3d.hpp b/wpimath/src/main/native/include/wpi/math/geometry/Pose3d.hpp index 9414e1ca5a..90b858e175 100644 --- a/wpimath/src/main/native/include/wpi/math/geometry/Pose3d.hpp +++ b/wpimath/src/main/native/include/wpi/math/geometry/Pose3d.hpp @@ -155,7 +155,7 @@ class WPILIB_DLLEXPORT Pose3d { * * @param scalar The scalar. * - * @return The new scaled Pose2d. + * @return The new scaled Pose3d. */ constexpr Pose3d operator*(double scalar) const { return Pose3d{m_translation * scalar, m_rotation * scalar}; @@ -166,7 +166,7 @@ class WPILIB_DLLEXPORT Pose3d { * * @param scalar The scalar. * - * @return The new scaled Pose2d. + * @return The new scaled Pose3d. */ constexpr Pose3d operator/(double scalar) const { return *this * (1.0 / scalar); diff --git a/wpimath/src/main/native/include/wpi/math/geometry/Translation3d.hpp b/wpimath/src/main/native/include/wpi/math/geometry/Translation3d.hpp index 26039566ca..83b537dff1 100644 --- a/wpimath/src/main/native/include/wpi/math/geometry/Translation3d.hpp +++ b/wpimath/src/main/native/include/wpi/math/geometry/Translation3d.hpp @@ -123,7 +123,7 @@ class WPILIB_DLLEXPORT Translation3d { /** * Returns the X component of the translation. * - * @return The Z component of the translation. + * @return The X component of the translation. */ constexpr wpi::units::meter_t X() const { return m_x; }