Content: Distance

Functions

template<int N, typename T >
computeDistance (const ads::FixedArray< N, T > &x, const ads::FixedArray< N, T > &y)
 Return the distance between the points x and y.
template<int N, typename T >
computeDistance (const ads::FixedArray< 2, ads::FixedArray< N, T > > &x)
 Return the distance between the points x[0] and x[1].
template<int N, typename T >
computeContent (const ads::FixedArray< N, T > &x, const ads::FixedArray< N, T > &y)
 Return the distance between the points x and y.
template<int N, typename T >
computeContent (const ads::FixedArray< 2, ads::FixedArray< N, T > > &x)
 Return the distance between the points x[0] and x[1].
template<int N, typename T >
void computeGradientOfDistance (const ads::FixedArray< N, T > &x, const ads::FixedArray< N, T > &y, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to x) of the distance between the points x and y.
template<int N, typename T >
void computeGradientOfDistance (const ads::FixedArray< 2, ads::FixedArray< N, T > > &x, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to x[0]) of the distance between the points x[0] and x[1].
template<int N, typename T >
void computeGradientOfContent (const ads::FixedArray< N, T > &x, const ads::FixedArray< N, T > &y, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to x) of the distance between the points x and y.
template<int N, typename T >
void computeGradientOfContent (const ads::FixedArray< 2, ads::FixedArray< N, T > > &x, ads::FixedArray< N, T > *gradient)
 Calculate the gradient (with respect to x[0]) of the distance between the points x[0] and x[1].

Detailed Description


Function Documentation

template<int N, typename T >
T computeContent ( const ads::FixedArray< N, T > &  x,
const ads::FixedArray< N, T > &  y 
) [inline]

Return the distance between the points x and y.

In 1-D the distance is signed. In N-D the distance is unsigned for N > 1.

template<int N, typename T >
T computeDistance ( const ads::FixedArray< N, T > &  x,
const ads::FixedArray< N, T > &  y 
) [inline]
Generated on Thu Jun 30 02:14:58 2016 for Computational Geometry Package by  doxygen 1.6.3