Add affine transformation constructors and getters to geometry API #7429
Labels
component: wpimath
Math library
type: feature
Brand new functionality, features, pages, workflows, endpoints, etc.
Translation2d
constexpr Translation2d(const Eigen::Vector2d& vec)
constexpr Eigen::Vector2d ToVector() const
Rotation2d
constexpr Rotation2d(const Eigen::Matrix2d& mat)
constexpr Eigen::Matrix2d ToMatrix() const
Pose2d
constexpr Pose2d(const Eigen::Matrix3d& mat)
constexpr Eigen::Matrix3d ToMatrix() const
Transform2d
constexpr Transform2d(const Eigen::Matrix3d& mat)
constexpr Eigen::Matrix3d ToMatrix() const
Translation3d
constexpr Translation3d(const Eigen::Vector3d& vec)
constexpr Eigen::Vector3d ToVector() const
Rotation3d
constexpr Rotation3d(const Eigen::Matrix3d& mat)
constexpr Eigen::Matrix3d ToMatrix() const
Pose3d
constexpr Pose3d(const Eigen::Matrix4d& mat)
constexpr Eigen::Matrix3d ToMatrix() const
Transform3d
constexpr Transform3d(const Eigen::Matrix4d& mat)
constexpr Eigen::Matrix3d ToMatrix() const
Other notes
These will replace the PoseToVector() functions in StateSpaceUtil. Some of them may exist in the geometry classes already, but the docs should be updated to use terminology from affine transformations.
The text was updated successfully, but these errors were encountered: