Ocean
Ocean::TriangleT< T > Class Template Reference

This class implements a base class for all triangle classes. More...

Inheritance diagram for Ocean::TriangleT< T >:

Static Public Member Functions

static bool isBarycentricInside (const VectorT3< T > &barycentricPoint)
 Returns whether a given point, specified as barycentric coordinate, lies inside a triangle. More...
 
static bool isValidBarycentric (const VectorT3< T > &barycentric, const T &epsilon=NumericT< T >::eps())
 Returns whether the a barycentric coordinate is valid. More...
 

Detailed Description

template<typename T>
class Ocean::TriangleT< T >

This class implements a base class for all triangle classes.

Template Parameters
TData type used to represent coordinates
See also
TriangleF, TriangleD, TriangleT2, TriangleT3.

Member Function Documentation

◆ isBarycentricInside()

template<typename T >
bool Ocean::TriangleT< T >::isBarycentricInside ( const VectorT3< T > &  barycentricPoint)
static

Returns whether a given point, specified as barycentric coordinate, lies inside a triangle.

Parameters
barycentricPointPoint to be checked
Returns
True, if so

◆ isValidBarycentric()

template<typename T >
bool Ocean::TriangleT< T >::isValidBarycentric ( const VectorT3< T > &  barycentric,
const T &  epsilon = NumericT<T>::eps() 
)
static

Returns whether the a barycentric coordinate is valid.

Parameters
barycentricBarycentric coordinate to test
epsilonAccuracy epsilon, with range [0, infinity)
Returns
True, if so

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