rotationAngleToNumber function
Implementation
int rotationAngleToNumber(RotationAngle angle) {
switch (angle) {
case RotationAngle.clockwise90:
return -90;
case RotationAngle.clockwise180:
return -180;
case RotationAngle.clockwise270:
return -270;
case RotationAngle.counterClockwise90:
return 90;
case RotationAngle.counterClockwise180:
return 180;
case RotationAngle.counterClockwise270:
return 270;
}
}