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)
 
void TransformToPolygon(SHAPE_POLY_SET &aBuffer, int aMaxError) const
Get the polygonal representation of the roundrect.
 
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
 
Represent a set of closed polygons.
 
VECTOR2< int32_t > VECTOR2I