|
Limbo
|
a class denoting orientation of lines More...
#include <Geometry.h>
Public Member Functions | |
| orientation_2d () | |
| constructor | |
| orientation_2d (orientation_2d_enum const &ori) | |
| constructor More... | |
| orientation_2d (const orientation_2d &ori) | |
| copy constructor More... | |
| orientation_2d & | operator= (const orientation_2d &ori) |
| assignment More... | |
| bool | operator== (orientation_2d const &rhs) const |
| equality operator More... | |
| bool | operator!= (orientation_2d const &rhs) const |
| inequality operator More... | |
| int | to_int () const |
| convert orientation to integer More... | |
| void | turn_90 () |
| turn 90 degree | |
| orientation_2d | get_perpendicular () const |
| get perpendicular orientation More... | |
| bool | valid () const |
| check whether the orientation is valid More... | |
Protected Attributes | |
| int | m_orient |
| enum type of orientation in integer representation | |
Friends | |
| bool | operator< (orientation_2d const &ori1, orientation_2d const &ori2) |
| less than operator More... | |
a class denoting orientation of lines
Definition at line 92 of file Geometry.h.
|
inline |
|
inline |
|
inline |
get perpendicular orientation
Definition at line 124 of file Geometry.h.
|
inline |
inequality operator
| rhs | object at right hand side |
Definition at line 116 of file Geometry.h.
|
inline |
assignment
| ori | an orientation_2d object |
Definition at line 107 of file Geometry.h.
|
inline |
equality operator
| rhs | object at right hand side |
Definition at line 112 of file Geometry.h.
|
inline |
convert orientation to integer
Definition at line 119 of file Geometry.h.
|
inline |
check whether the orientation is valid
Definition at line 132 of file Geometry.h.
|
friend |
less than operator
| ori1 | orientation |
| ori2 | orientation |
Definition at line 137 of file Geometry.h.
1.8.8