73 SHAPE_ARC(
const SEG& aSegmentA,
const SEG& aSegmentB,
int aRadius,
int aWidth = 0 );
93 double aAngle,
double aWidth = 0 );
100 const BOX2I BBox(
int aClearance = 0 )
const override;
102 bool Collide(
const SEG& aSeg,
int aClearance = 0,
int* aActual =
nullptr,
103 VECTOR2I* aLocation =
nullptr )
const override;
104 bool Collide(
const VECTOR2I& aP,
int aClearance = 0,
int* aActual =
nullptr,
105 VECTOR2I* aLocation =
nullptr )
const override;
132 void Mirror(
bool aX =
true,
bool aY =
false,
const VECTOR2I& aVector = { 0, 0 } );
void Mirror(bool aX=true, bool aY=false, const VECTOR2I &aVector={ 0, 0 })
void Rotate(double aAngle, const VECTOR2I &aCenter) override
Function Rotate rotates the arc by a given angle about a point.
bool Collide(const SEG &aSeg, int aClearance=0, int *aActual=nullptr, VECTOR2I *aLocation=nullptr) const override
Check if the boundary of shape (this) lies closer to the segment aSeg than aClearance,...
Define a general 2D-vector/point.
SHAPE_ARC & ConstructFromStartEndAngle(const VECTOR2I &aStart, const VECTOR2I &aEnd, double aAngle, double aWidth=0)
Constructs this arc from the given start, end and angle.
bool ccw(const VECTOR2I &aA, const VECTOR2I &aB, const VECTOR2I &aC) const
double GetStartAngle() const
const SHAPE_LINE_CHAIN ConvertToPolyline(double aAccuracy=0.005 *PCB_IU_PER_MM) const
Constructs a SHAPE_LINE_CHAIN of segments from a given arc.
constexpr double PCB_IU_PER_MM
const VECTOR2I & GetP0() const
const VECTOR2I & GetArcMid() const
An abstract shape on 2D plane.
SHAPE * Clone() const override
Return a dynamically allocated copy of the shape.
double GetEndAngle() const
void Move(const VECTOR2I &aVector) override
bool IsSolid() const override
VECTOR2I::extended_type ecoord
double GetCentralAngle() const
const BOX2I BBox(int aClearance=0) const override
Compute a bounding box of the shape, with a margin of aClearance a collision.
SHAPE_ARC Reversed() const
void SetWidth(int aWidth)
const VECTOR2I & GetP1() const
VECTOR2I GetCenter() const