A triangle formed from 3 points in a Point2DContainer. More...
#include <triangulator.h>
Public Types | |
enum | InsideType { IT_Inside = 0, IT_Outside = 1, IT_BorderlineOutside = 2 } |
An enum used to describe the proximity of a point to the edge of a Circumcircle generated by the Delaunay Triangulation algorithm. More... | |
Public Member Functions | |||
DelaunayTriangle (const Point2DContainer *List) | |||
Class constructor. More... | |||
~DelaunayTriangle () | |||
Class destructor. | |||
Boole | ContainsSegment (const Integer Index0, const Integer Index1) const | ||
Checks to see of the segment specified via Indexes is a part of this triangle. More... | |||
Integer | FindSegNumber (const Integer Index0, const Integer Index1) const | ||
Gets the index of a segment within this triangle.
| |||
String | GetDebugDescription () const | ||
Gets a string description of this triangle. More... | |||
Vector2 | GetMidPoint () const | ||
Gets the central point of this triangle. More... | |||
Vector2 | GetPoint (const Integer Point) const | ||
Gets a point in the Point2DContainer by index. More... | |||
Boole | IsDegenerate () const | ||
Checks if this triangle is degenerate. More... | |||
Boole | IsPointInside (const Vector2 &Point) const | ||
Checks to see if a point is inside this triangle. More... | |||
InsideType | IsPointInsideCircumcircle (const Vector2 &Point) const | ||
Checks to see if a point is inside the Circumcircle generated from this triangle. More... | |||
void | MakeDirectIfNeeded () | ||
Will conditionally re-arrange the vertices of this triangle. | |||
Boole | operator== (const DelaunayTriangle &Other) const | ||
Equality comparison operator. More... | |||
void | SetVertices (const Integer Index0, const Integer Index1, const Integer Index2) | ||
Sets the points that form this triangle. More... | |||
Public Attributes | |
Integer | Indexes [3] |
An array of indexes forming the triangle. More... | |
const Point2DContainer * | Points |
An array of Vector2's that for all the triangles/segments being operated on. | |
A triangle formed from 3 points in a Point2DContainer.
Definition at line 128 of file triangulator.h.
An enum used to describe the proximity of a point to the edge of a Circumcircle generated by the Delaunay Triangulation algorithm.
Definition at line 134 of file triangulator.h.
Mezzanine::Graphics::Procedural::DelaunayTriangle::DelaunayTriangle | ( | const Point2DContainer * | List | ) |
Class constructor.
List | A pointer to the Point2DContainer this triangle resides in. |
Definition at line 121 of file triangulator.cpp.
Boole Mezzanine::Graphics::Procedural::DelaunayTriangle::ContainsSegment | ( | const Integer | Index0, |
const Integer | Index1 | ||
) | const |
Checks to see of the segment specified via Indexes is a part of this triangle.
Index0 | The first point of the segment to check for. |
Index1 | The second point of the segment to check for. |
Definition at line 167 of file triangulator.cpp.
Integer Mezzanine::Graphics::Procedural::DelaunayTriangle::FindSegNumber | ( | const Integer | Index0, |
const Integer | Index1 | ||
) | const |
Gets the index of a segment within this triangle.
If | a valid segment index is not found then an INTERNAL_EXCEPTION will be thrown. |
Index0 | The first index of the segment to search for. |
Index1 | The second index of the segment to search for. |
Definition at line 155 of file triangulator.cpp.
String Mezzanine::Graphics::Procedural::DelaunayTriangle::GetDebugDescription | ( | ) | const |
Gets a string description of this triangle.
Definition at line 220 of file triangulator.cpp.
Vector2 Mezzanine::Graphics::Procedural::DelaunayTriangle::GetMidPoint | ( | ) | const |
Gets the central point of this triangle.
Definition at line 150 of file triangulator.cpp.
Gets a point in the Point2DContainer by index.
Point | The index of the point to retrieve. |
Definition at line 145 of file triangulator.cpp.
Boole Mezzanine::Graphics::Procedural::DelaunayTriangle::IsDegenerate | ( | ) | const |
Checks if this triangle is degenerate.
Definition at line 213 of file triangulator.cpp.
Boole Mezzanine::Graphics::Procedural::DelaunayTriangle::IsPointInside | ( | const Vector2 & | Point | ) | const |
Checks to see if a point is inside this triangle.
Point | The point to check. |
Definition at line 173 of file triangulator.cpp.
DelaunayTriangle::InsideType Mezzanine::Graphics::Procedural::DelaunayTriangle::IsPointInsideCircumcircle | ( | const Vector2 & | Point | ) | const |
Checks to see if a point is inside the Circumcircle generated from this triangle.
Point | The point to check. |
Definition at line 196 of file triangulator.cpp.
Boole Mezzanine::Graphics::Procedural::DelaunayTriangle::operator== | ( | const DelaunayTriangle & | Other | ) | const |
Equality comparison operator.
Other | The other DelaunayTriangle to compare with. |
Definition at line 228 of file triangulator.cpp.
void Mezzanine::Graphics::Procedural::DelaunayTriangle::SetVertices | ( | const Integer | Index0, |
const Integer | Index1, | ||
const Integer | Index2 | ||
) |
Sets the points that form this triangle.
Index0 | The first point in the Point2DContainer forming this triangle. |
Index1 | The second point in the Point2DContainer forming this triangle. |
Index2 | The third point in the Point2DContainer forming this triangle. |
Definition at line 131 of file triangulator.cpp.
Integer Mezzanine::Graphics::Procedural::DelaunayTriangle::Indexes[3] |
An array of indexes forming the triangle.
Definition at line 143 of file triangulator.h.