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