public class Rotation2d implements Geometric<T>
Modifier and Type | Class and Description |
---|---|
static class |
Rotation2d.Companion |
Modifier and Type | Field and Description |
---|---|
static Rotation2d.Companion |
Companion |
Constructor and Description |
---|
Rotation2d(double x,
double y,
boolean normalize) |
Rotation2d() |
Rotation2d(Rotation2d other) |
Rotation2d(Vector2 translation,
boolean normalize) |
Rotation2d(int x,
int y,
boolean normalize) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Rotation2d other) |
boolean |
equals(java.lang.Object other) |
double |
getCosAngle() |
double |
getDegrees() |
double |
getRadians() |
double |
getSinAngle() |
double |
getTan() |
int |
hashCode() |
Rotation2d |
interpolate(Rotation2d other,
double x) |
Rotation2d |
inverse() |
boolean |
isParallel(Rotation2d other) |
Rotation2d |
minus(Rotation2d other) |
Rotation2d |
normal() |
Rotation2d |
plus(Rotation2d other) |
Rotation2d |
rotateBy(Rotation2d other) |
java.lang.String |
toCSV() |
java.lang.String |
toString() |
Vector2 |
toVector() |
equals, hashCode, interpolate, toCSV, toString
interpolate
toCSV
public static Rotation2d.Companion Companion
public Rotation2d(double x, double y, boolean normalize)
public Rotation2d()
public Rotation2d(Rotation2d other)
public Rotation2d(Vector2 translation, boolean normalize)
public Rotation2d(int x, int y, boolean normalize)
public double getCosAngle()
public double getSinAngle()
public double getTan()
public double getRadians()
public double getDegrees()
public boolean equals(Rotation2d other)
public Rotation2d plus(Rotation2d other)
public Rotation2d minus(Rotation2d other)
public Rotation2d rotateBy(Rotation2d other)
public Rotation2d normal()
public Rotation2d inverse()
public Rotation2d interpolate(Rotation2d other, double x)
public boolean isParallel(Rotation2d other)
public Vector2 toVector()
public boolean equals(java.lang.Object other)
public java.lang.String toCSV()
public java.lang.String toString()
public int hashCode()