Go to the documentation of this file.
71 return p - normal_*((
p - origin_) & normal_);
77 return mag(signedDistance(
p));
83 return ((
p - origin_) & normal_);
89 const scalar dist = signedDistance(
p);
91 return (dist < 0 ? BACK : FRONT);
97 const scalar dist = signedDistance(
p);
99 return ((dist < -tol) ? -1 : (dist > tol) ? +1 : 0);
119 return (a.
origin() <
b.origin());
scalar distance(const point &p) const
Return distance (magnitude) from the given point to the plane.
const vector & normal() const
The plane unit normal.
point nearestPoint(const point &p) const
Return nearest point in the plane for the given point.
static constexpr const zero Zero
Global zero (0)
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
bool operator!=(const eddy &a, const eddy &b)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
int sign(const point &p, const scalar tol=SMALL) const
The sign for the side of the plane that the point is on.
scalar signedDistance(const point &p) const
Return distance from the given point to the plane.
void flip()
Flip the plane by reversing the normal.
const point & origin() const
The plane base point.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const point & refPoint() const
The plane base point (same as origin)
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
side sideOfPlane(const point &p) const
Return the side of the plane that the point is on.
plane()
Construct zero-initialised.