46 wxPoint coords( x, y );
60 std::swap( coords.
x, coords.
y );
67 const int stagger = std::abs(
m_stagger );
69 const int stagger_idx = ( ( sr ? coords.
y : coords.
x ) % stagger );
74 point += stagger_delta * copysign( stagger_idx,
m_stagger ) / stagger;
78 return { point, 0.0 };
126 return { new_pos - aPos,
angle / 10.0 };
wxString GetItemNumber(int n) const
Get the position number (name) for the n'th axis point.
int GetArraySize() const override
The number of points in this array.
TRANSFORM GetTransform(int aN, const VECTOR2I &aPos) const override
Get the transform of the n-th point in the array.
void RotatePoint(int *pX, int *pY, double angle)
int GetArraySize() const override
The number of points in this array.
wxString GetItemNumber(int n) const override
Get the position number (name) for the n'th array point.
bool m_horizontalThenVertical
long m_nPts
number of point in the array
bool m_reverseNumberingAlternate
VECTOR2I getGridCoords(int n) const
static DIRECTION_45::AngleType angle(const VECTOR2I &a, const VECTOR2I &b)
TRANSFORM GetTransform(int aN, const VECTOR2I &aPos) const override
Get the transform of the n-th point in the array.
double m_angle
angle between points, or 0 for each point separated by this value (decideg)
wxString GetItemNumber(int n) const override
Get the position number (name) for the n'th array point.