Free Electron
Public Member Functions | Static Private Member Functions | List of all members
fe::Barycenter< T > Class Template Reference

Barycentric coordinates for a triangle. More...

#include <Barycenter.h>

Inheritance diagram for fe::Barycenter< T >:
Inheritance graph
[legend]

Public Member Functions

 Barycenter (T a_b0, T a_b1)
 
 Barycenter (T a_b0, T a_b1, T a_b2)
 
 Barycenter (const Barycenter< T > &a_rOther)
 
 Barycenter (const Vector< 3, T > &a_rOther)
 
Barycenteroperator= (const Barycenter< T > &a_rOther)
 
Barycenteroperator= (const Vector< 3, T > &a_rOther)
 
BarycentersetUV (T a_u, T a_v)
 
 operator Vector< 3, T > (void) const
 
void solve (const Vector< 3, T > &a_vert0, const Vector< 3, T > &a_vert1, const Vector< 3, T > &a_vert2, const Vector< 3, T > &a_point)
 
void clamp (const Vector< 3, T > &a_vert0, const Vector< 3, T > &a_vert1, const Vector< 3, T > &a_vert2)
 
- Public Member Functions inherited from fe::Vector< 2, T >
 Vector (const Vector< N, T > &other)
 
 Vector (const Vector< N, U > &other)
 
 Vector (const Vector< N+1, U > &other)
 
 Vector (const Vector< N+2, U > &other)
 
 Vector (const Vector< N-1, U > &other)
 
 Vector (const Vector< N-2, U > &other)
 
 Vector (const T *array)
 
 Vector (T x, T y, T z, T w, T v, T u)
 
 Vector (T x, T y, T z, T w, T v)
 
 Vector (T x, T y, T z, T w)
 
 Vector (T x, T y, T z)
 
 Vector (T x, T y)
 
 Vector (T x)
 
 Vector (const Vector< 2, U > &other)
 
const T & operator[] (unsigned int index) const
 
T & operator[] (unsigned int index)
 
T * raw (void)
 
const T * raw (void) const
 
const T * temp (void) const
 
Vector< N, T > & operator= (const T *array)
 
Vector< N, T > & operator= (const Vector< N, T > &other)
 
Vector< N, T > & operator= (const Vector< N, U > &other)
 
Vector< N, T > & operator= (const Vector< N+1, T > &other)
 
Vector< N, T > & operator= (const Vector< N+1, U > &other)
 
Vector< N, T > & operator= (const Vector< N+2, U > &other)
 
Vector< N, T > & operator= (const Vector< N-1, U > &other)
 
Vector< N, T > & operator= (const Vector< N-2, U > &other)
 
bool operator== (const Vector< N, T > &other) const
 
bool operator!= (const Vector< N, T > &other) const
 

Static Private Member Functions

static T along (const Vector< 3, T > &start, const Vector< 3, T > &end, const Vector< 3, T > &point)
 

Additional Inherited Members

- Public Attributes inherited from fe::Vector< 2, T >
m_data [N]
 

Detailed Description

template<typename T>
class fe::Barycenter< T >

Barycentric coordinates for a triangle.

b2 is not stored, but implied as (1 - b0 - b1)

Usually, b0 >= 0, b1 >= 0, and b0 + b1 <= 1, but this is not a restriction.

coincident point = vert0 * b0 + vert1 * b1 + vert2 * b2


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