Package | Description |
---|---|
frc.team670.robot.utils.math |
Modifier and Type | Method and Description |
---|---|
Translation2d |
Translation2d.extrapolate(Translation2d other,
double x) |
static Translation2d |
Translation2d.identity() |
Translation2d |
Translation2d.interpolate(Translation2d other,
double x) |
Translation2d |
Translation2d.inverse()
The inverse simply means a Translation2d that "undoes" this object.
|
Translation2d |
Translation2d.rotateBy(Rotation2d rotation)
We can also rotate Translation2d's.
|
Translation2d |
Translation2d.scale(double s) |
Translation2d |
Rotation2d.toTranslation() |
Translation2d |
Translation2d.translateBy(Translation2d other)
We can compose Translation2d's by adding together the x and y shifts.
|
Modifier and Type | Method and Description |
---|---|
static double |
Translation2d.cross(Translation2d a,
Translation2d b) |
static double |
Translation2d.dot(Translation2d a,
Translation2d b) |
Translation2d |
Translation2d.extrapolate(Translation2d other,
double x) |
static Rotation2d |
Translation2d.getAngle(Translation2d a,
Translation2d b) |
Translation2d |
Translation2d.interpolate(Translation2d other,
double x) |
Translation2d |
Translation2d.translateBy(Translation2d other)
We can compose Translation2d's by adding together the x and y shifts.
|
Constructor and Description |
---|
Rotation2d(Translation2d direction,
boolean normalize) |
Translation2d(Translation2d other) |
Translation2d(Translation2d start,
Translation2d end) |