![]() |
Utilities
Utilities header only library
|
Definition of a 3 dimensional triangle. More...
Public Member Functions | |
| Triangle3 (const glm::vec3 &p0, const glm::vec3 &p1, const glm::vec3 &p2) | |
| glm::vec3 | GetNormal () const |
| Calculates a normal vector of a triangle using counter-clockwise order. | |
Public Member Functions inherited from geom::TTriangle< 3 > | |
| Vec & | operator[] (size_t point_id) |
| Returns point with a specified index. Calling Triangle[0] is equivalent to Triangle.points[0]. | |
| const Vec & | operator[] (size_t point_id) const |
| Returns point with a specified index. Calling Triangle[0] is equivalent to Triangle.points[0]. | |
| Vec | GetCentroid () const |
| Returns a centroid of the three triangle points. | |
Additional Inherited Members | |
Public Types inherited from geom::TTriangle< 3 > | |
| using | Vec = glm::vec< D, float > |
Data Fields inherited from geom::TTriangle< 3 > | |
| Vec | points [3] |
Definition of a 3 dimensional triangle.