A geometry math class for expressing a triangle in 2D space. More...
#include <triangle.h>
Collaboration diagram for Mezzanine::Triangle2D:Public Member Functions | |||
| Triangle2D () | |||
| Blank constructor. | |||
| Triangle2D (const Vector2 &A, const Vector2 &B, const Vector2 &C) | |||
| Descriptive constructor. More... | |||
| Vector2 & | operator[] (const Whole &Index) | ||
Gets the point in this triangle corresponding to the specified index.
| |||
| const Vector2 & | operator[] (const Whole &Index) const | ||
Gets the point in this triangle corresponding to the specified index.
| |||
Public Attributes | |
| Vector2 | PointA |
| The first point in space making the triangle. | |
| Vector2 | PointB |
| The second point in space making the triangle. | |
| Vector2 | PointC |
| The third point in space making the triangle. | |
A geometry math class for expressing a triangle in 2D space.
Definition at line 53 of file triangle.h.
Descriptive constructor.
| A | The first point in space making the triangle. |
| B | The second point in space making the triangle. |
| C | The third point in space making the triangle. |
Definition at line 124 of file triangle.cpp.
Gets the point in this triangle corresponding to the specified index.
| If | the index passed in is greater than 2, a PARAMETERS_RANGE_EXCEPTION will be thrown. |
| Index | The index of the point to retrieve. |
Definition at line 133 of file triangle.cpp.
Gets the point in this triangle corresponding to the specified index.
| If | the index passed in is greater than 2, a PARAMETERS_RANGE_EXCEPTION will be thrown. |
| Index | The index of the point to retrieve. |
Definition at line 146 of file triangle.cpp.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.