![]() |
|
Public Member Functions | |
line (const Point &start, const Point &end) | |
Construct from two points. | |
line (Istream &) | |
Construct from Istream. | |
PointRef | start () const |
Return first vertex. | |
PointRef | end () const |
Return second vertex. | |
Point | centre () const |
Return centre (centroid). | |
scalar | mag () const |
Return scalar magnitude. | |
vector | vec () const |
Return start-end vector. | |
pointHit | nearestDist (const point &p) const |
Return nearest distance to line from a given point. | |
scalar | nearestDist (const line< point, const point & > &edge, point &thisPoint, point &edgePoint) const |
Return nearest distance from line to line. Returns distance. | |
Friends | |
Istream & | operator>> (Istream &, line &) |
Ostream & | operator (Ostream &, const line &) |
|
Construct from two points.
Definition at line 48 of file lineI.H. References Istream::readBegin(). |
Here is the call graph for this function:
|
Construct from Istream.
|
|
Return centre (centroid).
Definition at line 87 of file lineI.H. References Foam::mag(), and line::vec(). |
Here is the call graph for this function:
|
Return second vertex.
|
|
Return scalar magnitude.
|
|
Return nearest distance from line to line. Returns distance. and sets both points (one on *this, one on the provided linePointRef Definition at line 141 of file lineI.H. References Foam::vector. |
|
Return nearest distance to line from a given point. If the nearest point is on the line, return a hit Definition at line 109 of file lineI.H. References p. |
|
Return first vertex.
|
|
Return start-end vector.
Definition at line 101 of file lineI.H. References p, Foam::point, and Foam::vector. Referenced by line::centre(). |
|
|
|
|