37 return -( aPoint - aMirrorRef ) + aMirrorRef;
44constexpr void MIRROR(
T& aPoint,
const T& aMirrorRef )
58 MIRROR( aPoint.x, aMirrorRef.x );
60 MIRROR( aPoint.y, aMirrorRef.y );
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE ANGLE_90
constexpr EDA_ANGLE MIRROR_AXIS(FLIP_DIRECTION aFlipDirection)
Returns the angle of the axis of reflection for the given flip direction.
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)