| 54 | } |
| 55 | |
| 56 | Referential Referential::flip(FlipAxis axis) const |
| 57 | { |
| 58 | const bool bothOrHorizontal |
| 59 | = (axis == FlipAxis::Both || axis == FlipAxis::Horizontal); |
| 60 | const bool bothOrVertical |
| 61 | = (axis == FlipAxis::Both || axis == FlipAxis::Vertical); |
| 62 | return Referential( |
| 63 | bothOrHorizontal ? 1 - m_refX : m_refX, bothOrVertical ? 1 - m_refY : m_refY); |
| 64 | } |
| 65 | |
| 66 | bool Referential::isOnLeftSide() const |
| 67 | { |
no test coverage detected