makeRotationCounterClockwise method
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);
}