Functions | |
| 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. | |
| 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]. | |
| 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. | |
| 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]. | |
| 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. | |
| template<int N, typename T> | |
| 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]. | |
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
1.4.7