Functions | |
template<int N, typename T > | |
T | computeDotProduct (const ads::FixedArray< N, T > &x, const ads::FixedArray< N, T > &y) |
Return the dot product of x and y. | |
template<typename T > | |
ads::FixedArray< 3, T > | computeCrossProduct (const ads::FixedArray< 3, T > &x, const ads::FixedArray< 3, T > &y) |
Return the cross product of x and y. | |
template<typename T > | |
void | computeCrossProduct (const ads::FixedArray< 3, T > &x, const ads::FixedArray< 3, T > &y, ads::FixedArray< 3, T > *result) |
Compute the cross product of x and y. | |
template<typename T > | |
T | computeTripleProduct (const ads::FixedArray< 3, T > &a, const ads::FixedArray< 3, T > &b, const ads::FixedArray< 3, T > &c) |
The scalar triple product of three vectors: . | |
template<typename T > | |
T | computeDiscriminant (const ads::FixedArray< 2, T > &p, const ads::FixedArray< 2, T > &q) |
Return the discriminant of the vectors. | |
template<typename T > | |
void | computeAnOrthogonalVector (const ads::FixedArray< 3, T > &vector, ads::FixedArray< 3, T > *orthogonal) |
Compute an orthogonal vector. |
void computeCrossProduct | ( | const ads::FixedArray< 3, T > & | x, | |
const ads::FixedArray< 3, T > & | y, | |||
ads::FixedArray< 3, T > * | result | |||
) | [inline] |
Compute the cross product of x and y.
This exists as an optimization of geom::cross(). With this function there is no need to construct an ads::FixedArray.
T computeDotProduct | ( | const ads::FixedArray< N, T > & | x, | |
const ads::FixedArray< N, T > & | y | |||
) | [inline] |
Return the dot product of x and y.
This has specializations for 1, 2 and 3-D.
Referenced by ComplexWithFreeVertexOnManifold< QF, N, 2, _Manifold, T >::computeGradientOfContent(), ComplexWithFreeVertexOnManifold< QF, N, 1, _Manifold, T >::computeGradientOfContent(), ComplexWithFreeVertexOnManifold< QF, N, 2, _Manifold, T >::computeGradientOfNorm2(), ComplexWithFreeVertexOnManifold< QF, N, 1, _Manifold, T >::computeGradientOfNorm2(), ComplexWithFreeVertexOnManifold< QF, N, 2, _Manifold, T >::computeGradientOfNorm2Modified(), ComplexWithFreeVertexOnManifold< QF, N, 1, _Manifold, T >::computeGradientOfNorm2Modified(), Line_2< T >::computeSignedDistance(), Line_2< T >::computeSignedDistanceAndClosestPoint(), ISS_SD_CloserPointDirection< ISS >::operator()(), and ISS_SD_ClosestPointDirection< ISS >::operator()().