Triangle class.
More...
#include <PxTriangle.h>
|
|
PxVec3 | verts [3] |
| | Array of Vertices.
|
| |
◆ PxTriangle() [1/2]
Constructor.
- Parameters
-
| [in] | p0 | Point 0 |
| [in] | p1 | Point 1 |
| [in] | p2 | Point 2 |
◆ PxTriangle() [2/2]
Copy constructor.
- Parameters
-
◆ area()
Compute the area of the triangle.
- Returns
- Area of the triangle.
◆ denormalizedNormal()
Compute the unnormalized normal of the triangle.
- Parameters
-
| [out] | _normal | Triangle normal (not normalized). |
◆ normal()
Compute the normal of the Triangle.
- Parameters
-
◆ pointFromUV()
- Returns
- Computes a point on the triangle from u and v barycentric coordinates.
The documentation for this class was generated from the following file: