static Orientation orientationRotated90DegreesClockwise()

in cpp/spectrum/image/Orientation.cpp [28:50]


static Orientation orientationRotated90DegreesClockwise(
    const Orientation orientation) {
  switch (orientation) {
    case Orientation::Up:
      return Orientation::Right;
    case Orientation::Right:
      return Orientation::Bottom;
    case Orientation::Bottom:
      return Orientation::Left;
    case Orientation::Left:
      return Orientation::Up;
    case Orientation::UpMirrored:
      return Orientation::RightMirrored;
    case Orientation::RightMirrored:
      return Orientation::BottomMirrored;
    case Orientation::BottomMirrored:
      return Orientation::LeftMirrored;
    case Orientation::LeftMirrored:
      return Orientation::UpMirrored;
    default:
      SPECTRUM_UNREACHABLE_IMAGE_ORIENTATION(orientation);
  }
}