ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
A round rectangle shape, based on a rectangle and a radius.
int GetRoundRadius() const
BOX2I BBox() const
Get the bounding box of the roundrect.
int GetWidth() const
Shortcut for common values.
static ROUNDRECT OutsetFrom(const SHAPE_RECT &aRect, int aOutset)
const SHAPE_RECT & GetRect() const
Get the basis rectangle of the roundrect.
ROUNDRECT GetInflated(int aOutset) const
Get the roundrect with the size increased by aOutset in all directions.
VECTOR2I GetPosition() const
void TransformToPolygon(SHAPE_POLY_SET &aBuffer, int aError, ERROR_LOC aErrorLoc) const
Get the polygonal representation of the roundrect.
Represent a set of closed polygons.
const BOX2I BBox(int aClearance=0) const override
Compute a bounding box of the shape, with a margin of aClearance a collision.
const VECTOR2I & GetPosition() const