aimstil  5.0.5
til::geo::TriangleNormal< TArray, TResArray > Class Template Reference

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...
 

Detailed Description

template<typename TArray, typename TResArray>
class til::geo::TriangleNormal< TArray, TResArray >

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.

Member Typedef Documentation

◆ prec_type

template<typename TArray , typename TResArray >
typedef TResArray::value_type til::geo::TriangleNormal< TArray, TResArray >::prec_type

Definition at line 154 of file geometrics.h.

Member Function Documentation

◆ operator()()

template<typename TArray , typename TResArray >
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.

Parameters
AInput: first triangle vertex
BInput: second triangle vertex
CInput: third triangle vertex
NOutput: triangle normal

The documentation for this class was generated from the following file: