Represents a 2D translation vector (x, y).
More...
#include <valkyrie/util/geometry/Pose.h>
Represents a 2D translation vector (x, y).
◆ Translation2d() [1/3]
| valor::geometry::Translation2d::Translation2d |
( |
frc::Translation2d | frcTranslation | ) |
|
|
inlineexplicit |
Construct a 2D translation from an frc::Translation2d.
- Parameters
-
| frcTranslation | The frc translation to convert. |
◆ Translation2d() [2/3]
| valor::geometry::Translation2d::Translation2d |
( |
frc::Translation3d | frcTranslation | ) |
|
|
inlineexplicit |
Construct a 2D translation from an frc::Translation3d by dropping Z.
- Parameters
-
| frcTranslation | The frc 3D translation to project onto the X-Y plane. |
◆ Translation2d() [3/3]
| valor::geometry::Translation2d::Translation2d |
( |
const Translation3d & | t | ) |
|
|
inlineexplicit |
Construct a 2D translation from a 3D translation by dropping Z.
- Parameters
-
◆ Distance()
| units::meter_t valor::geometry::Translation2d::Distance |
( |
const Translation2d & | other | ) |
const |
|
inline |
Distance from this translation to another.
- Parameters
-
| other | The other translation. |
- Returns
- The distance in meters.
◆ RotateBy()
Rotate this translation by a Rotation2d.
- Parameters
-
| rot | The rotation to apply. |
- Returns
- The rotated translation.
The documentation for this class was generated from the following file:
- src/main/include/valkyrie/util/geometry/Pose.h