A rectangle aligned with the primary axis (x and y) More...
#include <right_rectangle.hpp>


Public Member Functions | |
| RightRectangle (const Vector2D &lower_left, const Vector2D &upper_right) | |
| Class constructor. More... | |
| RightRectangle (const pair< Vector2D, Vector2D > &ll_ur) | |
| Class constructor. More... | |
| bool | operator() (const Vector2D &point) const |
| Returns true is a point is inside the shape, false otherwise. More... | |
Public Member Functions inherited from Shape2D | |
| virtual | ~Shape2D (void) |
| virtual destructor | |
A rectangle aligned with the primary axis (x and y)
Definition at line 14 of file right_rectangle.hpp.
Class constructor.
| lower_left | Vertex with lowest values of x and y |
| upper_right | Vertex with highest values of x and y |
Definition at line 3 of file right_rectangle.cpp.
Class constructor.
| ll_ur | Pair of points (first: lower left, second: upper right) |
Definition at line 12 of file right_rectangle.cpp.
|
virtual |
Returns true is a point is inside the shape, false otherwise.
| r | Point in 2d space |
Implements Shape2D.
Definition at line 30 of file right_rectangle.cpp.
1.8.13