Go to the source code of this file.
Namespaces | |
Foam | |
Namespace for OpenFOAM. | |
Foam::vectorTools | |
Collection of functions for testing relationships between two vectors. | |
Functions | |
template<class T > | |
bool | areParallel (const Vector< T > &a, const Vector< T > &b, const T &tolerance=small) |
Test if a and b are parallel: a^b = 0. More... | |
template<class T > | |
bool | areOrthogonal (const Vector< T > &a, const Vector< T > &b, const T &tolerance=small) |
Test if a and b are orthogonal: a.b = 0. More... | |
template<class T > | |
bool | areAcute (const Vector< T > &a, const Vector< T > &b) |
Test if angle between a and b is acute: a.b > 0. More... | |
template<class T > | |
bool | areObtuse (const Vector< T > &a, const Vector< T > &b) |
Test if angle between a and b is obtuse: a.b < 0. More... | |
template<class T > | |
T | cosPhi (const Vector< T > &a, const Vector< T > &b, const T &tolerance=small) |
Calculate angle between a and b in radians. More... | |
template<class T > | |
T | radAngleBetween (const Vector< T > &a, const Vector< T > &b, const T &tolerance=small) |
Calculate angle between a and b in radians. More... | |
template<class T > | |
T | degAngleBetween (const Vector< T > &a, const Vector< T > &b, const T &tolerance=small) |
Calculate angle between a and b in degrees. More... | |
Original source file vectorTools.H
Definition in file vectorTools.H.