57 template<
class Po
int,
class Po
intRef>
class line;
59 template<
class Po
int,
class Po
intRef>
62 template<
class Po
int,
class Po
intRef>
63 inline Ostream& operator<<(Ostream& os, const line<Point, PointRef>& l);
129 inline scalar
mag()
const;
146 template<
class Po
int,
class Po
intRef>
182 PointRef
a() const
noexcept {
return a_; }
185 PointRef
b() const
noexcept {
return b_; }
215 inline scalar
mag()
const;
Point unitVec() const
Return the unit vector (start-to-end)
line(const Point &from, const Point &to)
Construct from two points.
const T & first() const noexcept
Access the first element.
PointRef last() const noexcept
The last (second) point.
linePointRef ln() const
Return as line reference.
scalar mag() const
The magnitude (length) of the line.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Pair< point > box() const
The enclosing (bounding) box for the line.
scalar mag() const
The magnitude (length) of the line.
PointRef end() const noexcept
The end (second) point.
Pair< Point > box() const
The enclosing (bounding) box for the line.
vector vec() const
Return start-to-end vector.
vector unitVec() const
Return the unit vector (start-to-end)
linePoints()=default
Default construct.
An ordered pair of two objects of type <T> with first() and second() elements.
line< point, const point & > linePointRef
A line using referred points.
PointRef first() const noexcept
The first point.
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
const point & b() const noexcept
The second vertex.
Istream & operator>>(Istream &, directionInfo &)
PointRef a() const noexcept
The first point.
Describes the interaction of a object and a (templated) point. It carries the info of a successful hi...
Line point storage. Default constructable (line is not)
PointRef b() const noexcept
The second point.
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...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
point centre() const
Return centre (centroid)
PointRef second() const noexcept
The second (last) point.
Point centre() const
Return centre (centroid)
Point vec() const
Return start-to-end vector.
const point & a() const noexcept
The first vertex.
PointRef start() const noexcept
The start (first) point.
const T & second() const noexcept
Access the second element.
PointHit< Point > nearestDist(const Point &p) const
Return nearest distance to line from a given point.
const volScalarField & p0