38 return (
x1 == aTransform.
x1 &&
39 y1 == aTransform.
y1 &&
40 x2 == aTransform.
x2 &&
41 y2 == aTransform.
y2 );
77 TRANSFORM invtransform( invx1, invy1, invx2, invy2 );
86 wxCHECK_MSG( aAngle1 !=
nullptr && aAngle2 !=
nullptr,
false,
87 wxT(
"Cannot map NULL point angles." ) );
105 EDA_ANGLE deltaTransformed = *aAngle2 - *aAngle1;
109 if( residualError > epsilon || residualError < epsilon.
Invert().
Normalize() )
111 std::swap( *aAngle1, *aAngle2 );
115 if( *aAngle2 < *aAngle1 )
void SetOrigin(const Vec &pos)
const Vec & GetOrigin() const
void SetEnd(coord_type x, coord_type y)
static constexpr EDA_ANGLE & ANGLE_360
static constexpr EDA_ANGLE & ANGLE_0
This file contains miscellaneous commonly used macros and functions.
VECTOR2< double > VECTOR2D