Loading...
Searching...
No Matches
vectorTools.H File Reference
Include dependency graph for vectorTools.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Foam
 Namespace for OpenFOAM.
namespace  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.
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.
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.
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.
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.
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.
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.

Detailed Description

Original source file vectorTools.H

Definition in file vectorTools.H.