mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpimath] Add 2D to 3D geometry constructors (#7380)
This commit is contained in:
@@ -58,6 +58,8 @@ class WPILIB_DLLEXPORT Pose3d {
|
||||
* Constructs a 3D pose from a 2D pose in the X-Y plane.
|
||||
*
|
||||
* @param pose The 2D pose.
|
||||
* @see Rotation3d(Rotation2d)
|
||||
* @see Translation3d(Translation2d)
|
||||
*/
|
||||
constexpr explicit Pose3d(const Pose2d& pose)
|
||||
: m_translation{pose.X(), pose.Y(), 0_m},
|
||||
|
||||
Reference in New Issue
Block a user