Bentley-Otmann Algorithm 2.0
An implementation of Bentley-Ottmann algorithm in order to count the m,n-cubes
Public Member Functions | Private Attributes
Point Class Reference

2D points with rational coordinates More...

#include <geometry.hpp>

List of all members.

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

Detailed Description

2D points with rational coordinates

Definition at line 53 of file geometry.hpp.


Constructor & Destructor Documentation

Point::Point ( const Point p) [inline]

Copy constructor.

Parameters:
pPoint to copy

Definition at line 69 of file geometry.hpp.

Point::Point ( const rat &  xx,
const rat &  yy 
) [inline]

Initializer constructor.

Parameters:
xx,yyAbscissa and ordinate to affect to the point

Definition at line 75 of file geometry.hpp.


Member Function Documentation

void Point::assign ( const rat &  x,
const rat &  y 
)

Assigns coordinates to the point.

Parameters:
x,yCoordinates to assign

Definition at line 31 of file geometry.cpp.

rat Point::get_abscissa ( ) const

Reads private member x.

Returns:
Abcissa of the point

Definition at line 15 of file geometry.cpp.

rat Point::get_ordinate ( ) const

Reads private member y.

Returns:
Ordinate of the point

Definition at line 23 of file geometry.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations