This group contains geometric data structures implemented in LEMON.
- dim2::Point implements a two dimensional vector with the usual operations.
- dim2::Box can be used to determine the rectangular bounding box of a set of dim2::Point's.
|
file | dim2.h |
| A simple two dimensional vector and a bounding box implementation.
|
|
◆ makePoint()
Point< T > makePoint |
( |
const T & |
x, |
|
|
const T & |
y |
|
) |
| |
|
related |
◆ operator*()
Point< T > operator* |
( |
const T & |
u, |
|
|
const Point< T > & |
x |
|
) |
| |
|
related |
Return a vector multiplied by a scalar.
◆ operator>>() [1/2]
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
Point< T > & |
z |
|
) |
| |
|
related |
Read a plain vector from a stream.
◆ operator<<() [1/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Point< T > & |
z |
|
) |
| |
|
related |
Write a plain vector to a stream.
◆ rot90()
Returns the parameter rotated by 90 degrees in positive direction.
◆ rot180()
Returns the parameter rotated by 180 degrees.
◆ rot270()
Returns the parameter rotated by 90 degrees in negative direction.
◆ operator>>() [2/2]
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
Box< T > & |
b |
|
) |
| |
|
related |
Read a box from a stream.
◆ operator<<() [2/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Box< T > & |
b |
|
) |
| |
|
related |
◆ xMap() [1/2]
This function just returns an XMap class.
◆ xMap() [2/2]
This function just returns a ConstXMap class.
◆ yMap() [1/2]
This function just returns a YMap class.
◆ yMap() [2/2]
This function just returns a ConstYMap class.
◆ normSquareMap()