getRotation static method

int getRotation(
  1. Rotation rotation
)

getRotation

Implementation

static int getRotation(Rotation rotation) {
  switch (rotation) {
    case Rotation.r_0:
      return 0;
    case Rotation.r_90:
      return 90;
    case Rotation.r_180:
      return 180;
    case Rotation.r_270:
      return 270;
  }
}