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 Rotation2dplus(Double x)final Doubleminus(Rotation2d r)final Vector2dtimes(Vector2d v)final PoseVelocity2dtimes(PoseVelocity2d pv)final Rotation2dtimes(Rotation2d r)final Vector2dvec()final Rotation2dinverse()final Doublelog()Get the rotation as a normalized Double. final DoubletoDouble()Alias for log. final static Rotation2dexp(Double theta)Turns an unnormalized angle into a rotation. final static Rotation2dfromDouble(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.
-
-