39 return (
x1 == aTransform.
x1 &&
40 y1 == aTransform.
y1 &&
41 x2 == aTransform.
x2 &&
42 y2 == aTransform.
y2 );
78 TRANSFORM invtransform( invx1, invy1, invx2, invy2 );
87 wxCHECK_MSG( aAngle1 !=
nullptr && aAngle2 !=
nullptr,
false,
88 wxT(
"Cannot map NULL point angles." ) );
106 EDA_ANGLE deltaTransformed = *aAngle2 - *aAngle1;
110 if( residualError > epsilon || residualError < epsilon.
Invert().
Normalize() )
112 std::swap( *aAngle1, *aAngle2 );
116 if( *aAngle2 < *aAngle1 )
128size_t std::hash<TRANSFORM>::operator()(
const TRANSFORM& s )
const
130 size_t seed = std::hash<int>{}( s.
x1 );
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
static void hash_combine(std::size_t &seed)
This is a dummy function to take the final case of hash_combine below.
This file contains miscellaneous commonly used macros and functions.
VECTOR2< double > VECTOR2D