makeRotationCounterClockwise method

Rotation makeRotationCounterClockwise(
  1. Rotation rotation
)
override

Returns a counter-clockwise version of the given rotation, as seen through the given orientation.

Implementation

Rotation makeRotationCounterClockwise(Rotation rotation) {
  return isRotationCounterClockwise(rotation) ? rotation : Rotation.fromDegrees(-rotation.degrees);
}