37 return (
x1 == aTransform.
x1 &&
38 y1 == aTransform.
y1 &&
39 x2 == aTransform.
x2 &&
40 y2 == aTransform.
y2 );
76 TRANSFORM invtransform( invx1, invy1, invx2, invy2 );
85 wxCHECK_MSG( aAngle1 !=
nullptr && aAngle2 !=
nullptr,
false,
86 wxT(
"Cannot map NULL point angles." ) );
104 EDA_ANGLE deltaTransformed = *aAngle2 - *aAngle1;
108 if( residualError >
epsilon || residualError <
epsilon.Invert().Normalize() )
110 std::swap( *aAngle1, *aAngle2 );
114 if( *aAngle2 < *aAngle1 )
126size_t std::hash<TRANSFORM>::operator()(
const TRANSFORM& s )
const
128 size_t seed = std::hash<int>{}( s.
x1 );
constexpr const Vec GetEnd() const
constexpr void SetOrigin(const Vec &pos)
constexpr const Vec & GetOrigin() const
constexpr void SetEnd(coord_type x, coord_type y)
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE ANGLE_360
static constexpr void hash_combine(std::size_t &seed)
This is a dummy function to take the final case of hash_combine below.
VECTOR2< int32_t > VECTOR2I
VECTOR2< double > VECTOR2D