60 const int halfW =
std::abs( second.
x - first.
x ) / 2;
61 const int halfH =
std::abs( second.
y - first.
y ) / 2;
Plain ellipse / elliptical-arc data.
EDA_ANGLE GetAngleAtPoint(const VECTOR2< NumericType > &aPt) const
Get the parametric angle of a point on the ellipse.
ELLIPSE< int > GetEllipse() const
Get the ellipse defined by the current geometry (valid after SET_BBOX_C2).
ELLIPSE_STEPS GetStep() const
bool setBboxCorner1(const VECTOR2I &aPt)
bool setBboxCorner2(const VECTOR2I &aPt)
bool setEndAngle(const VECTOR2I &aPt)
bool acceptPoint(const VECTOR2I &aPt) override
< Function that accepts a point for a stage, or rejects it to return to the previous stage
bool setStartAngle(const VECTOR2I &aPt)
@ SET_START_ANGLE
Waiting to lock in the start angle.
@ SET_BBOX_C1
Waiting to lock in first bbox corner.
@ SET_END_ANGLE
Waiting to lock in the end angle.
@ SET_BBOX_C2
Waiting to lock in second bbox corner.
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE ANGLE_90
static constexpr EDA_ANGLE ANGLE_360
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
VECTOR2< int32_t > VECTOR2I
VECTOR2< double > VECTOR2D