Package com.acmerobotics.roadrunner
Class Rotation2d
-
- All Implemented Interfaces:
public final class Rotation2d
-
-
Constructor Summary
Constructors Constructor Description Rotation2d(Double real, Double imag)
-
Method Summary
Modifier and Type Method Description final Rotation2d
plus(Double x)
final Double
minus(Rotation2d r)
final Vector2d
times(Vector2d v)
final PoseVelocity2d
times(PoseVelocity2d pv)
final Rotation2d
times(Rotation2d r)
final Vector2d
vec()
final Rotation2d
inverse()
final Double
log()
Get the rotation as a normalized Double. final Double
toDouble()
Alias for log. final static Rotation2d
exp(Double theta)
Turns an unnormalized angle into a rotation. final static Rotation2d
fromDouble(Double theta)
Alias for exp. -
-
Method Detail
-
plus
final Rotation2d plus(Double x)
-
minus
final Double minus(Rotation2d r)
-
times
final PoseVelocity2d times(PoseVelocity2d pv)
-
times
final Rotation2d times(Rotation2d r)
-
inverse
final Rotation2d inverse()
-
exp
final static Rotation2d exp(Double theta)
Turns an unnormalized angle into a rotation.
-
fromDouble
final static Rotation2d fromDouble(Double theta)
Alias for exp.
-
-
-
-