Represents a transformation for a Pose2d.
More...
#include <Transform2d.h>
Represents a transformation for a Pose2d.
◆ Transform2d() [1/2]
| frc::Transform2d::Transform2d |
( |
Pose2d |
initial, |
|
|
Pose2d |
final |
|
) |
| |
Constructs the transform that maps the initial pose to the final pose.
- Parameters
-
| initial | The initial pose for the transformation. |
| final | The final pose for the transformation. |
◆ Transform2d() [2/2]
Constructs a transform with the given translation and rotation components.
- Parameters
-
| translation | Translational component of the transform. |
| rotation | Rotational component of the transform. |
◆ operator!=()
| bool frc::Transform2d::operator!= |
( |
const Transform2d & |
other | ) |
const |
Checks inequality between this Transform2d and another object.
- Parameters
-
- Returns
- Whether the two objects are not equal.
◆ operator*()
| Transform2d frc::Transform2d::operator* |
( |
double |
scalar | ) |
const |
|
inline |
Scales the transform by the scalar.
- Parameters
-
- Returns
- The scaled Transform2d.
◆ operator==()
| bool frc::Transform2d::operator== |
( |
const Transform2d & |
other | ) |
const |
Checks equality between this Transform2d and another object.
- Parameters
-
- Returns
- Whether the two objects are equal.
◆ Rotation()
| const Rotation2d& frc::Transform2d::Rotation |
( |
| ) |
const |
|
inline |
Returns the rotational component of the transformation.
- Returns
- Reference to the rotational component of the transform.
◆ Translation()
Returns the translation component of the transformation.
- Returns
- Reference to the translational component of the transform.
The documentation for this class was generated from the following file:
- /__w/1/s/wpilibc/src/main/native/include/frc/geometry/Transform2d.h