Public Member Functions | List of all members
Shape2D Class Referenceabstract

Abstract type for a two dimensional shape. More...

#include <shape_2d.hpp>

Inheritance diagram for Shape2D:
Inheritance graph
[legend]

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
 

Detailed Description

Abstract type for a two dimensional shape.

Definition at line 12 of file shape_2d.hpp.

Member Function Documentation

◆ operator()()

virtual bool Shape2D::operator() ( const Vector2D r) const
pure virtual

Returns true is a point is inside the shape, false otherwise.

Parameters
rPoint in 2d space
Returns
True if r is inside the shape

Implemented in Outside, Circle, and RightRectangle.


The documentation for this class was generated from the following files: