|
Bentley-Otmann Algorithm 2.0
An implementation of Bentley-Ottmann algorithm in order to count the m,n-cubes
|
2D points with rational coordinates More...
#include <geometry.hpp>
Public Member Functions | |
| Point () | |
| Default constructor. | |
| Point (const Point &p) | |
| Copy constructor. | |
| Point (const rat &xx, const rat &yy) | |
| Initializer constructor. | |
| rat | get_abscissa () const |
| Reads private member x. | |
| rat | get_ordinate () const |
| Reads private member y. | |
| void | assign (const rat &, const rat &) |
| Assigns coordinates to the point. | |
Private Attributes | |
| rat | x |
| abscissa | |
| rat | y |
| ordinate | |
2D points with rational coordinates
Definition at line 53 of file geometry.hpp.
| Point::Point | ( | const Point & | p | ) | [inline] |
| Point::Point | ( | const rat & | xx, |
| const rat & | yy | ||
| ) | [inline] |
Initializer constructor.
| xx,yy | Abscissa and ordinate to affect to the point |
Definition at line 75 of file geometry.hpp.
| void Point::assign | ( | const rat & | x, |
| const rat & | y | ||
| ) |
Assigns coordinates to the point.
| x,y | Coordinates to assign |
Definition at line 31 of file geometry.cpp.
| rat Point::get_abscissa | ( | ) | const |
| rat Point::get_ordinate | ( | ) | const |
1.7.4