[wpimath] Fix incorrect C++ return docs in Pose3d and Translation3d (#8793)

This commit is contained in:
Gold856
2026-04-24 01:53:29 -04:00
committed by GitHub
parent 930340e8f0
commit 1586dcf385
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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; }