57template<
class Po
int,
class Po
intRef>
class line;
59template<
class Po
int,
class Po
intRef>
62template<
class Po
int,
class Po
intRef>
129 inline scalar
mag()
const;
149template<
class Po
int,
class Po
intRef>
185 PointRef
a() const
noexcept {
return a_; }
188 PointRef
b() const
noexcept {
return b_; }
218 inline scalar
mag()
const;
221 inline scalar
magSqr()
const;
A 1D vector of objects of type <T> with a fixed length <N>.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An ordered pair of two objects of type <T> with first() and second() elements.
const T & first() const noexcept
Access the first element.
const T & second() const noexcept
Access the second element.
Describes the interaction of a object and a (templated) point. It carries the info of a successful hi...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
vector vec() const
Return start-to-end vector.
point & b() noexcept
The second vertex.
linePointRef ln() const
Return as line reference.
point & a() noexcept
The first vertex.
const point & b() const noexcept
The second vertex.
Pair< point > box() const
The enclosing (bounding) box for the line.
scalar mag() const
The magnitude (length) of the line.
const point & a() const noexcept
The first vertex.
scalar magSqr() const
The magnitude squared (length squared) of the line.
vector unitVec() const
Return the unit vector (start-to-end).
linePoints()=default
Default construct.
point centre() const
Return centre (centroid).
PointHit< Point > nearestDist(const Point &p) const
Return nearest distance to line from a given point.
PointRef end() const noexcept
The end (second) point.
line(const Point &from, const Point &to)
Construct from two points.
PointRef a() const noexcept
The first point.
PointRef first() const noexcept
The first point.
scalar nearestDist(const line< Point, const Point & > &edge, Point &thisPoint, Point &edgePoint) const
Return nearest distance from line to line. Returns distance and sets both points (one on *this,...
PointRef second() const noexcept
The second (last) point.
line(const UList< Point > &points, const FixedList< label, 2 > &indices)
Construct from two points in the list of points.
Point centre() const
Return centre (centroid).
friend Ostream & operator(Ostream &, const line &)
line(Istream &is)
Construct from Istream.
PointRef last() const noexcept
The last (second) point.
scalar mag() const
The magnitude (length) of the line.
static Pair< Point > box(const Point &p0, const Point &p1)
The enclosing (bounding) box for two points.
Point unitVec() const
Return the unit vector (start-to-end).
Pair< Point > box() const
The enclosing (bounding) box for the line.
scalar magSqr() const
The magnitude squared (length squared) of the line.
PointRef b() const noexcept
The second point.
PointRef start() const noexcept
The start (first) point.
Point vec() const
Return start-to-end vector.
const volScalarField & p0
OBJstream os(runTime.globalPath()/outputName)
vector2D point2D
Point2D is a vector.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
line< point, const point & > linePointRef
A line using referred points.
vector point
Point is a vector.