Functions | |
template<typename T > | |
T | 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 > | |
T | 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 > | |
T | 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 > | |
T | 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 > | |
T | 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 > | |
T | 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 | 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 | 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 | 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 | 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 | 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]. |
T computeArea | ( | const ads::FixedArray< 3, ads::FixedArray< 3, T > > & | p | ) | [inline] |
Return the area of the triangle with points p
[0], p
[1] and p
[2].
In 3-D the area is unsigned.
T computeArea | ( | const ads::FixedArray< 3, T > & | a, | |
const ads::FixedArray< 3, T > & | b, | |||
const ads::FixedArray< 3, T > & | c | |||
) | [inline] |
Return the area of the triangle with points a
, b
and c
.
In 3-D the area is unsigned.
T computeArea | ( | const ads::FixedArray< 3, ads::FixedArray< 2, T > > & | p | ) | [inline] |
Return the area of the triangle with points p
[0], p
[1] and p
[2].
In 2-D the area is signed.
T computeArea | ( | const ads::FixedArray< 2, T > & | a, | |
const ads::FixedArray< 2, T > & | b, | |||
const ads::FixedArray< 2, T > & | c | |||
) | [inline] |
Return the area of the triangle with points a
, b
and c
.
In 2-D the area is signed.
T computeContent | ( | const ads::FixedArray< N, T > & | a, | |
const ads::FixedArray< N, T > & | b, | |||
const ads::FixedArray< N, T > & | c | |||
) | [inline] |
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.
void 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.
References computeGradientOfArea().
void 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.
References computeGradientOfArea().