Functions
Foam::vectorTools Namespace Reference

Functions

template<class T >
bool areParallel (const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
 
template<class T >
bool areOrthogonal (const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
 
template<class T >
bool areAcute (const Vector< T > &a, const Vector< T > &b)
 
template<class T >
bool areObtuse (const Vector< T > &a, const Vector< T > &b)
 
template<class T >
T cosPhi (const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
 
template<class T >
T radAngleBetween (const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
 
template<class T >
T degAngleBetween (const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
 

Function Documentation

◆ areParallel()

bool Foam::vectorTools::areParallel ( const Vector< T > &  a,
const Vector< T > &  b,
const T tolerance = SMALL 
)

Definition at line 52 of file vectorTools.H.

References Foam::constant::physicoChemical::b, and Foam::mag().

Referenced by indexedCell::potentialCoplanarCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ areOrthogonal()

bool Foam::vectorTools::areOrthogonal ( const Vector< T > &  a,
const Vector< T > &  b,
const T tolerance = SMALL 
)

Definition at line 69 of file vectorTools.H.

References Foam::constant::physicoChemical::b, and Foam::mag().

Here is the call graph for this function:

◆ areAcute()

bool Foam::vectorTools::areAcute ( const Vector< T > &  a,
const Vector< T > &  b 
)

Definition at line 81 of file vectorTools.H.

References Foam::constant::physicoChemical::b.

◆ areObtuse()

bool Foam::vectorTools::areObtuse ( const Vector< T > &  a,
const Vector< T > &  b 
)

Definition at line 92 of file vectorTools.H.

References Foam::constant::physicoChemical::b.

◆ cosPhi()

T Foam::vectorTools::cosPhi ( const Vector< T > &  a,
const Vector< T > &  b,
const T tolerance = SMALL 
)

Definition at line 103 of file vectorTools.H.

References Foam::constant::physicoChemical::b, Foam::mag(), Foam::max(), and Foam::min().

Referenced by Foam::diff(), radAngleBetween(), and radiativeIntensityRay::radiativeIntensityRay().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ radAngleBetween()

T Foam::vectorTools::radAngleBetween ( const Vector< T > &  a,
const Vector< T > &  b,
const T tolerance = SMALL 
)

Definition at line 118 of file vectorTools.H.

References Foam::acos(), Foam::constant::physicoChemical::b, cosPhi(), Foam::mag(), Foam::max(), and Foam::min().

Referenced by degAngleBetween().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ degAngleBetween()

T Foam::vectorTools::degAngleBetween ( const Vector< T > &  a,
const Vector< T > &  b,
const T tolerance = SMALL 
)

Definition at line 133 of file vectorTools.H.

References Foam::constant::physicoChemical::b, radAngleBetween(), and Foam::radToDeg().

Here is the call graph for this function: