mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpimath] Add Rotation3d rotation vector getter (#7564)
The code churn in Java is just making the function order consistent between languages.
This commit is contained in:
@@ -421,6 +421,13 @@ class WPILIB_DLLEXPORT Rotation3d {
|
||||
1.0 - 2.0 * (x * x + y * y)}};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns rotation vector representation of this rotation.
|
||||
*
|
||||
* @return Rotation vector representation of this rotation.
|
||||
*/
|
||||
constexpr Eigen::Vector3d ToVector() const { return m_q.ToRotationVector(); }
|
||||
|
||||
/**
|
||||
* Returns a Rotation2d representing this Rotation3d projected into the X-Y
|
||||
* plane.
|
||||
|
||||
Reference in New Issue
Block a user