dtUtil::BarycentricSpace< VecT > Class Template Reference

Transforms Cartesian data points into Barycentric coordinate systems. More...

#include <barycentric.h>

List of all members.

Public Member Functions

 BarycentricSpace (const VecT &a, const VecT &b, const VecT &c)
VecT Transform (const VecT &p)
 transform the data point into the barycentric system.


Detailed Description

template<class VecT>
class dtUtil::BarycentricSpace< VecT >

Transforms Cartesian data points into Barycentric coordinate systems.

http://en.wikipedia.org/wiki/Barycentric_coordinates_%28mathematics%29


Constructor & Destructor Documentation

template<class V>
dtUtil::BarycentricSpace< V >::BarycentricSpace ( const V &  a,
const V &  b,
const V &  c 
) [inline]


Member Function Documentation

template<class V>
V dtUtil::BarycentricSpace< V >::Transform ( const V &  p  )  [inline]

transform the data point into the barycentric system.

Parameters:
p the data point to be transformed into the Barycentric coordinate system.
Returns:
the Barycentric coordinate.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008