82 const bool orient =
false 93 const bool orient =
false 103 inline label
order()
const;
121 inline static scalar
area 201 #include "triangle2DI.H" A 1D vector of objects of type <T> with a fixed length <N>.
static scalar absTol
Absolute tolerance.
scalar area() const noexcept
Return the triangle area.
void interArea(const triangle2D &triB, vector2D ¢re, scalar &area) const
Return the intersection centre and area.
static label nClosePoints(const triangle2D &triA, const triangle2D &triB)
Return the number of similar points between two triangles.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
static bool lineIntersectionPoint(const vector2D &a, const vector2D &b, const vector2D &c, const vector2D &d, vector2D &intersection)
Set the intersection between two lines Return true if lines intersect.
label order() const
Returns: 1 if points are ordered in anti-clockwise direction -1 if points are ordered in clockwise di...
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...
static bool lineSegmentIntersectionPoint(const vector2D &lp1, const vector2D &lp2, const vector2D &sp1, const vector2D &sp2, vector2D &intersection)
Set the intersection between a line and segment Return true if lines intersect.
OBJstream os(runTime.globalPath()/outputName)
bool overlaps(const triangle2D &triB) const
Return true if triB overlaps.
static void writeOBJ(Ostream &os, const triangle2D &tri, label offset)
Write the triangle in OBJ format.
triangle2D(const vector2D &a, const vector2D &b, const vector2D &c, const bool orient=false)
Construct from 3 2-D points.
bool isSame(const triangle2D &triB) const
Return true if triB is the same as this triangle.
vector2D centre() const
Return the triangle centre.
const dimensionedScalar c
Speed of light in a vacuum.
static bool lineIntersects(const vector2D &a, const vector2D &b, const vector2D &c, const vector2D &d)
Return true if lines ab and cd intersect.
static scalar relTol
Relative tolerance.
bool contains(const triangle2D &tri) const
Return true if tri is within this triangle.
label snapClosePoints(const triangle2D &triB)
Snap [this] triangle's points to those of triB if they are within absTol.
bool pointInside(const vector2D &p) const
Return true if t point p is inside this triangle.