|
|
|
line< Point, PointRef > Class Template ReferenceA line primitive. More...
Detailed Descriptiontemplate<class Point, class PointRef>
A line primitive.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| line | ( | const Point & | start, | |
| const Point & | end | |||
| ) | [inline] |
| PointRef start | ( | ) | const [inline] |
Return first vertex.
Definition at line 54 of file lineI.H.
Referenced by line< Point, PointRef >::nearestDist().

| PointRef end | ( | ) | const [inline] |
Return second vertex.
Definition at line 60 of file lineI.H.
Referenced by line< Point, PointRef >::nearestDist().

| scalar mag | ( | ) | const [inline] |
Return scalar magnitude.
Definition at line 74 of file lineI.H.
Referenced by line< Point, PointRef >::nearestDist(), and line< Point, PointRef >::vec().

| Point vec | ( | ) | const [inline] |
Return start-end vector.
Definition at line 81 of file lineI.H.
References line< Point, PointRef >::mag().

| PointHit< Point > nearestDist | ( | const Point & | p | ) | const [inline] |
| scalar nearestDist | ( | const line< point2D, const point2D & > & | e, | |
| point2D & | thisPt, | |||
| point2D & | edgePt | |||
| ) | const [inline] |
Definition at line 29 of file line.C.
References d, Foam::mathematicalConstant::e, line< Point, PointRef >::end(), line< Point, PointRef >::mag(), Foam::mag(), Foam::max(), Foam::min(), line< Point, PointRef >::nearestDist(), and line< Point, PointRef >::start().

| scalar nearestDist | ( | const line< point2D, const point2D & > & | edge, | |
| point2D & | thisPoint, | |||
| point2D & | edgePoint | |||
| ) | const [inline] |