mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpimath] Add an operator for composing two Transform2ds (#3527)
This commit is contained in:
@@ -81,6 +81,13 @@ class Transform2d {
|
||||
return Transform2d(m_translation * scalar, m_rotation * scalar);
|
||||
}
|
||||
|
||||
/**
|
||||
* Composes two transformations.
|
||||
*
|
||||
* @param other The transform to compose with this one.
|
||||
*/
|
||||
Transform2d operator+(const Transform2d& other) const;
|
||||
|
||||
/**
|
||||
* Checks equality between this Transform2d and another object.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user