Abstract type for a two dimensional shape. More...
#include <shape_2d.hpp>
Public Member Functions | |
virtual bool | operator() (const Vector2D &r) const =0 |
Returns true is a point is inside the shape, false otherwise. More... | |
virtual | ~Shape2D (void) |
virtual destructor | |
Abstract type for a two dimensional shape.
Definition at line 12 of file shape_2d.hpp.
|
pure virtual |
Returns true is a point is inside the shape, false otherwise.
r | Point in 2d space |
Implemented in Outside, Circle, and RightRectangle.