vtf-logo

Content: Volume


Functions

template<int N, typename T>
geom::computeVolume (const ads::FixedArray< N, T > &a, const ads::FixedArray< N, T > &b, const ads::FixedArray< N, T > &c, const ads::FixedArray< N, T > &d)
 Return the volume of the tetrahedron with points a, b, c and d.
template<int N, typename T>
geom::computeVolume (const ads::FixedArray< 4, ads::FixedArray< N, T > > &p)
 Return the volume of the tetrahedron with points p[0], p[1], p[2] and p[3].
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, const ads::FixedArray< N, T > &d)
 Return the volume of the tetrahedron with points a, b, c and d.
template<int N, typename T>
geom::computeContent (const ads::FixedArray< 4, ads::FixedArray< N, T > > &p)
 Return the volume of the tetrahedron with points p[0], p[1], p[2] and p[3].
template<typename T>
void geom::computeGradientOfVolume (const ads::FixedArray< 3, T > &a, const ads::FixedArray< 3, T > &b, const ads::FixedArray< 3, T > &c, const ads::FixedArray< 3, T > &d, ads::FixedArray< 3, T > *gradient)
 Calculate the gradient (with respect to a) of the volume of the tetrahedron with points a, b, c and d.
template<int N, typename T>
void geom::computeGradientOfVolume (const ads::FixedArray< 4, ads::FixedArray< N, T > > &p, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to a) of the volume of the tetrahedron with points p[0], p[1], p[2] and p[3].
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, const ads::FixedArray< N, T > &d, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to a) of the volume of the tetrahedron with points a, b, c and d.
template<int N, typename T>
void geom::computeGradientOfContent (const ads::FixedArray< 4, ads::FixedArray< N, T > > &p, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to a) of the volume of the tetrahedron with points p[0], p[1], p[2] and p[3].

Function Documentation

template<int N, typename T>
T geom::computeContent ( const ads::FixedArray< 4, ads::FixedArray< N, T > > &  p  )  [inline]

Return the volume of the tetrahedron with points p[0], p[1], p[2] and p[3].

In 3-D the volume is signed. In N-D the volume is unsigned for N > 3.

This is simply a wrapper for computeVolume().

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,
const ads::FixedArray< N, T > &  d 
) [inline]

Return the volume of the tetrahedron with points a, b, c and d.

In 3-D the volume is signed. In N-D the volume is unsigned for N > 3.

This is simply a wrapper for computeVolume().

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

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

This is simply a wrapper for computeGradientOfVolume().

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,
const ads::FixedArray< N, T > &  d,
ads::FixedArray< N, T > *  gradient 
) [inline]

Calculate the gradient (with respect to a) of the volume of the tetrahedron with points a, b, c and d.

This is simply a wrapper for computeGradientOfVolume().

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

Return the volume of the tetrahedron with points a, b, c and d.

In 3-D the volume is signed. In N-D the volume is unsigned for N > 3.


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