vtf-logo

Content: Area


Functions

template<typename T>
geom::computeArea (const ads::FixedArray< 2, T > &a, const ads::FixedArray< 2, T > &b, const ads::FixedArray< 2, T > &c)
 Return the area of the triangle with points a, b and c.
template<typename T>
geom::computeArea (const ads::FixedArray< 3, ads::FixedArray< 2, T > > &p)
 Return the area of the triangle with points p[0], p[1] and p[2].
template<typename T>
geom::computeArea (const ads::FixedArray< 3, T > &a, const ads::FixedArray< 3, T > &b, const ads::FixedArray< 3, T > &c)
 Return the area of the triangle with points a, b and c.
template<typename T>
geom::computeArea (const ads::FixedArray< 3, ads::FixedArray< 3, T > > &p)
 Return the area of the triangle with points p[0], p[1] and p[2].
template<int N, typename T>
geom::computeContent (const ads::FixedArray< N, T > &a, const ads::FixedArray< N, T > &b, const ads::FixedArray< N, T > &c)
 Return the area of the triangle with points a, b and c.
template<int N, typename T>
geom::computeContent (const ads::FixedArray< 3, ads::FixedArray< N, T > > &p)
 Return the area of the triangle with points p[0], p[1] and p[2].
template<typename T>
void geom::computeGradientOfArea (const ads::FixedArray< 2, T > &a, const ads::FixedArray< 2, T > &b, const ads::FixedArray< 2, T > &c, ads::FixedArray< 2, T > *gradient)
 Calculate the gradient (with respect to a) of the area of the triangle with points a, b and c.
template<typename T>
void geom::computeGradientOfArea (const ads::FixedArray< 3, T > &a, const ads::FixedArray< 3, T > &b, const ads::FixedArray< 3, T > &c, ads::FixedArray< 3, T > *gradient)
 Calculate the gradient (with respect to a) of the area of the triangle with points a, b and c.
template<int N, typename T>
void geom::computeGradientOfArea (const ads::FixedArray< 3, ads::FixedArray< N, T > > &p, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to a) of the area of the triangle with points p[0], p[1] and p[2].
template<int N, typename T>
void geom::computeGradientOfContent (const ads::FixedArray< N, T > &a, const ads::FixedArray< N, T > &b, const ads::FixedArray< N, T > &c, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to a) of the area of the triangle with points a, b and c.
template<int N, typename T>
void geom::computeGradientOfContent (const ads::FixedArray< 3, ads::FixedArray< N, T > > &p, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to a) of the area of the triangle with points p[0], p[1] and p[2].

Function Documentation

template<typename T>
T geom::computeArea ( const ads::FixedArray< 3, ads::FixedArray< 3, T > > &  p  ) 

Return the area of the triangle with points p[0], p[1] and p[2].

In 3-D the area is unsigned.

template<typename T>
T geom::computeArea ( const ads::FixedArray< 3, T > &  a,
const ads::FixedArray< 3, T > &  b,
const ads::FixedArray< 3, T > &  c 
)

Return the area of the triangle with points a, b and c.

In 3-D the area is unsigned.

template<typename T>
T geom::computeArea ( const ads::FixedArray< 3, ads::FixedArray< 2, T > > &  p  ) 

Return the area of the triangle with points p[0], p[1] and p[2].

In 2-D the area is signed.

template<typename T>
T geom::computeArea ( const ads::FixedArray< 2, T > &  a,
const ads::FixedArray< 2, T > &  b,
const ads::FixedArray< 2, T > &  c 
)

Return the area of the triangle with points a, b and c.

In 2-D the area is signed.

template<int N, typename T>
T geom::computeContent ( const ads::FixedArray< N, T > &  a,
const ads::FixedArray< N, T > &  b,
const ads::FixedArray< N, T > &  c 
)

Return the area of the triangle with points a, b and c.

In 2-D the area is signed. In N-D the area is unsigned for N > 2.

template<int N, typename T>
void geom::computeGradientOfContent ( const ads::FixedArray< 3, ads::FixedArray< N, T > > &  p,
ads::FixedArray< N, T > *  gradient 
) [inline]

Calculate the gradient (with respect to a) of the area of the triangle with points p[0], p[1] and p[2].

This is simply a wrapper for computeGradientOfArea.

template<int N, typename T>
void geom::computeGradientOfContent ( const ads::FixedArray< N, T > &  a,
const ads::FixedArray< N, T > &  b,
const ads::FixedArray< N, T > &  c,
ads::FixedArray< N, T > *  gradient 
) [inline]

Calculate the gradient (with respect to a) of the area of the triangle with points a, b and c.

This is simply a wrapper for computeGradientOfArea.


Generated on Fri Aug 24 12:56:00 2007 for Computational Geometry Package by  doxygen 1.4.7