Size Size::oriented()

in cpp/spectrum/image/Geometry.cpp [90:105]


Size Size::oriented(const Orientation orientation) const {
  switch (orientation) {
    case Orientation::Left:
    case Orientation::LeftMirrored:
    case Orientation::Right:
    case Orientation::RightMirrored:
      return transposed();
    case Orientation::Up:
    case Orientation::UpMirrored:
    case Orientation::Bottom:
    case Orientation::BottomMirrored:
      return *this;
    default:
      SPECTRUM_UNREACHABLE_IMAGE_ORIENTATION(orientation);
  }
}