aimstil
5.0.5
|
Compute the normal of a triangle. More...
#include <cathier/geometrics.h>
Classes | |
class | InvalidTriangle |
This exeception is thrown whenever a reliable computation of the triangle normal cannot be achieved. More... | |
Public Types | |
typedef TResArray::value_type | prec_type |
Public Member Functions | |
bool | operator() (const TArray &A, const TArray &B, const TArray &C, TResArray &N) |
Compute a triangle's normal given its three vertices. More... | |
Compute the normal of a triangle.
Basically, it makes sure that the computed normal is numerically stable.
Definition at line 145 of file geometrics.h.
typedef TResArray::value_type til::geo::TriangleNormal< TArray, TResArray >::prec_type |
Definition at line 154 of file geometrics.h.
bool til::geo::TriangleNormal< TArray, TResArray >::operator() | ( | const TArray & | A, |
const TArray & | B, | ||
const TArray & | C, | ||
TResArray & | N | ||
) |
Compute a triangle's normal given its three vertices.
Return true if successful.
A | Input: first triangle vertex |
B | Input: second triangle vertex |
C | Input: third triangle vertex |
N | Output: triangle normal |