Shortest Distance to a collection of vertical and horizontal lines.
More...
Shortest Distance to a collection of vertical and horizontal lines.
First determine which line is closest to given point and then determine the exact distance to it
◆ WallDistance() [1/2]
dg::WallDistance::WallDistance |
( |
std::vector< double > |
vertical, |
|
|
std::vector< double > |
horizontal |
|
) |
| |
|
inline |
Allocate lines.
- Parameters
-
vertical | walls R_0, R_1 ... ( can be arbitrary size) |
horizontal | walls Z_0, Z_1 ... ( can be arbitrary size) |
◆ WallDistance() [2/2]
dg::WallDistance::WallDistance |
( |
dg::Grid2d |
walls | ) |
|
|
inline |
Allocate lines.
- Parameters
-
walls | two vertical (x0, x1) and two horizontal (y0, y1) walls |
◆ operator()()
double dg::WallDistance::operator() |
( |
double |
R, |
|
|
double |
Z |
|
) |
| const |
|
inline |
The documentation for this struct was generated from the following file: