28#include <geometry/shape.h>
30#include <math/vector2d.h>
55 const BOX2I BBox(
int aClearance = 0 )
const override
60 bool Collide(
const SEG& aSeg,
int aClearance = 0,
int* aActual =
nullptr,
61 VECTOR2I* aLocation =
nullptr )
const override
66 void Move(
const VECTOR2I& aVector )
override
74 bool IsSolid()
const override
Definition shape_null.h:35
void Rotate(double aAngle, const VECTOR2I &aCenter={ 0, 0 }) override
Definition shape_null.h:70
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,...
Definition shape_null.h:60
const BOX2I BBox(int aClearance=0) const override
Compute a bounding box of the shape, with a margin of aClearance a collision.
Definition shape_null.h:55
SHAPE * Clone() const override
Return a dynamically allocated copy of the shape.
Definition shape_null.h:48
An abstract shape on 2D plane.
Definition shape.h:117