Package | Description |
---|---|
frc.team670.robot.utils.math |
Modifier and Type | Method and Description |
---|---|
Rotation2d |
Translation2d.direction() |
static Rotation2d |
Rotation2d.fromDegrees(double angle_degrees) |
static Rotation2d |
Rotation2d.fromRadians(double angle_radians) |
static Rotation2d |
Translation2d.getAngle(Translation2d a,
Translation2d b) |
static Rotation2d |
Rotation2d.identity() |
Rotation2d |
Rotation2d.interpolate(Rotation2d other,
double x) |
Rotation2d |
Rotation2d.inverse()
The inverse of a Rotation2d "undoes" the effect of this rotation.
|
Rotation2d |
Rotation2d.normal() |
Rotation2d |
Rotation2d.rotateBy(Rotation2d other)
We can rotate this Rotation2d by adding together the effects of it and another rotation.
|
Modifier and Type | Method and Description |
---|---|
Rotation2d |
Rotation2d.interpolate(Rotation2d other,
double x) |
boolean |
Rotation2d.isParallel(Rotation2d other) |
Translation2d |
Translation2d.rotateBy(Rotation2d rotation)
We can also rotate Translation2d's.
|
Rotation2d |
Rotation2d.rotateBy(Rotation2d other)
We can rotate this Rotation2d by adding together the effects of it and another rotation.
|
Constructor and Description |
---|
Rotation2d(Rotation2d other) |