Go to the documentation of this file.
54 template<
class Po
int,
class Po
intRef>
class line;
56 template<
class Po
int,
class Po
intRef>
59 template<
class Po
int,
class Po
intRef>
67 template<
class Po
int,
class Po
intRef>
103 inline PointRef
first() const noexcept;
106 inline PointRef
second() const noexcept;
109 inline PointRef
last() const noexcept;
112 inline PointRef
start() const noexcept;
115 inline PointRef
end() const noexcept;
124 inline scalar
mag() const;
line(const Point &from, const Point &to)
Construct from two points.
Point centre() const
Return centre (centroid)
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
PointRef start() const noexcept
Return first point.
Istream & operator>>(Istream &, directionInfo &)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
PointRef end() const noexcept
Return second (last) point.
PointRef second() const noexcept
Return second (last) point.
scalar mag() const
Return scalar magnitude.
Point unitVec() const
Return the unit vector (start-to-end)
PointRef last() const noexcept
Return last (second) point.
OBJstream os(runTime.globalPath()/outputName)
A 1D vector of objects of type <T> with a fixed length <N>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
friend Ostream & operator(Ostream &os, const line &l)
PointHit< Point > nearestDist(const Point &p) const
Return nearest distance to line from a given point.
Point vec() const
Return start-to-end vector.
PointRef first() const noexcept
Return first point.