#include <Triangle.h>
◆ Triangle() [1/2]
Herd::Triangle::Triangle |
( |
| ) |
|
|
default |
Constructor.
Builds an unspecified Triangle.
◆ ~Triangle()
virtual Herd::Triangle::~Triangle |
( |
| ) |
|
|
virtualdefault |
◆ Triangle() [2/2]
Herd::Triangle::Triangle |
( |
std::array< Point, 3 > |
points | ) |
|
Constructor.
Builds the Triangle region whose three vertices are given by the three points passed as argument.
- Parameters
-
- Exceptions
-
◆ Contains()
bool Herd::Triangle::Contains |
( |
Point |
point | ) |
const |
Checks if the Triangle contains the given point.
No check is performed to verify if the point lies on the same plane. This is up to the user, and can easily be checked by making sure that the dot product between the point and the plane normal is zero.
- Parameters
-
point | The point to be checked |
◆ Intersection()
std::optional< Point > Herd::Triangle::Intersection |
( |
const Line & |
line | ) |
const |
Computes the intersection point of the given line with the Triangle.
For a default-constructed Triangle the returned intersection point is undefined.
- Parameters
-
- Returns
- Optional: The intersection point if it exists.
◆ operator!=()
bool Herd::Triangle::operator!= |
( |
const Triangle & |
rhs | ) |
const |
|
inline |
◆ operator==()
bool Herd::Triangle::operator== |
( |
const Triangle & |
rhs | ) |
const |
|
inline |
Comparison operator.
- Parameters
-
rhs | The right-hand-side object of the comparison operation. |
- Returns
- true if the two Trapezes are member-wise equal.
◆ Plane()
Gets the plane on which the Triangle lies.
For a default-constructed Triangle the returned plane is undefined.
- Returns
- The plane containing the Triangle.
◆ Vertices()
std::array< Point, 3 > Herd::Triangle::Vertices |
( |
| ) |
const |
Gets the vertices of the Triangle.
For a default-constructed Triangle the returned points are undefined.
- Returns
- The vertices of the Triangle.
◆ m_plane
◆ m_vertices
std::array<Vec3D, 2> Herd::Triangle::m_vertices |
|
protected |
The documentation for this class was generated from the following files:
- /builds/herd/HerdSoftware/include/herd/analysis/dataobjects/Triangle.h
- /builds/herd/HerdSoftware/src/analysis/dataobjects/Triangle.cpp