38 return -( aPoint - aMirrorRef ) + aMirrorRef;
45constexpr void MIRROR( T& aPoint,
const T& aMirrorRef )
59 MIRROR( aPoint.x, aMirrorRef.x );
61 MIRROR( aPoint.y, aMirrorRef.y );
constexpr T MIRRORVAL(T aPoint, T aMirrorRef)
Returns the mirror of aPoint relative to the aMirrorRef.
constexpr void MIRROR(T &aPoint, const T &aMirrorRef)
Updates aPoint with the mirror of aPoint relative to the aMirrorRef.
@ LEFT_RIGHT
Flip left to right (around the Y axis)
@ TOP_BOTTOM
Flip top to bottom (around the X axis)