mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpimath] Fix incorrect C++ return docs in Pose3d and Translation3d (#8793)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user