Creates random line from another by shifting it.
More...
List of all members.
Public Member Functions |
| | RandomLineByShiftGenerator (const Geometry::RandomLineSet &rls, float d=1, int s=0) |
| void | generate (Geometry::RandomLineSet &, int linenr_in_inp_set=0) const |
| | , -1=left, 0=both, 1=right
|
Public Attributes |
| const Geometry::RandomLineSet & | rls_ |
| float | dist_ |
| int | side_ |
Protected Member Functions |
| void | crLine (const Geometry::RandomLine &, bool, Geometry::RandomLineSet &) const |
| bool | getShifted (Coord, Coord, Coord &, Coord &, bool) const |
| bool | getIntersection (Coord, Coord, Coord, Coord, Coord &) const |
Detailed Description
Creates random line from another by shifting it.
Constructor & Destructor Documentation
| EM::RandomLineByShiftGenerator::RandomLineByShiftGenerator |
( |
const Geometry::RandomLineSet & |
rls, |
|
|
float |
d = 1, |
|
|
int |
s = 0 | |
|
) |
| | [inline] |
Member Function Documentation
, -1=left, 0=both, 1=right
| bool EM::RandomLineByShiftGenerator::getShifted |
( |
Coord |
, |
|
|
Coord |
, |
|
|
Coord & |
, |
|
|
Coord & |
, |
|
|
bool |
| |
|
) |
| | const [protected] |
Member Data Documentation