65 return p - normal_*((
p - origin_) & normal_);
77 return ((
p - origin_) & normal_);
91 const scalar dist = signedDistance(
p);
93 return ((dist < -tol) ? -1 : (dist > tol) ? +1 : 0);
113 return (a.origin() <
b.origin());
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
plane()
Construct zero-initialised.
const point & origin() const noexcept
The plane base point.
void flip()
Flip the plane by reversing the normal.
scalar distance(const point &p) const
Return distance (magnitude) from the given point to the plane.
const vector & normal() const noexcept
The plane unit normal.
side whichSide(const point &p) const
Return the side of the plane that the point is on.
point nearestPoint(const point &p) const
Return nearest point in the plane for the given point.
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.
@ FRONT
The front (positive normal) side of the plane.
@ BACK
The back (negative normal) side of the plane.
bool operator!=(const eddy &a, const eddy &b)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0).
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.