Triangle or polygon structure. (In 3D space) More...
#include <triangle.hpp>
Public Member Functions | |
| Triangle (f32x4 p0, f32x4 p1, f32x4 p2) noexcept | |
| Creates a new triangle (polygon) structure. (In 3D space) | |
| Triangle ()=default | |
| Creates a new zero size triangle (polygon) structure. | |
| Triangle | operator* (f32x4 v) const noexcept |
| Triangle | operator/ (f32x4 v) const noexcept |
| Triangle | operator+ (f32x4 v) const noexcept |
| Triangle | operator- (f32x4 v) const noexcept |
| Triangle & | operator*= (f32x4 v) noexcept |
| Triangle & | operator/= (f32x4 v) noexcept |
| Triangle & | operator+= (f32x4 v) noexcept |
| Triangle & | operator-= (f32x4 v) noexcept |
| bool | operator== (const Triangle &v) const noexcept |
| bool | operator!= (const Triangle &v) const noexcept |
Public Attributes | |
| f32x4 | p0 = f32x4::zero |
| f32x4 | p1 = f32x4::zero |
| f32x4 | p2 = f32x4::zero |
Static Public Attributes | |
| static constexpr int32 | pointCount = 3 |
| Triangle point count. (Polygon) | |
Triangle or polygon structure. (In 3D space)
Defined by three points in 3D space.
Creates a new triangle (polygon) structure. (In 3D space)
| p0 | first triangle vertex position in 3D space |
| p1 | second triangle vertex position in 3D space |
| p2 | third triangle vertex position in 3D space |
| f32x4 p0 = f32x4::zero |
First triangle vertex position.
| f32x4 p1 = f32x4::zero |
Second triangle vertex position.
| f32x4 p2 = f32x4::zero |
Third triangle vertex position.