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 static Rotation2d
exp(Double theta)
Turns an unnormalized angle into a rotation. -
-
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.
-
-
-
-