58 const T& tolerance = SMALL
61 return (
mag(a ^ b) < tolerance) ?
true :
false;
75 const T& tolerance = SMALL
78 return (
mag(a & b) < tolerance) ?
true :
false;
89 return ((a & b) > 0) ?
true :
false;
100 return ((a & b) < 0) ?
true :
false;
109 const T& tolerance = SMALL
115 return min(
max(cosPhi, -1), 1);
124 const T& tolerance = SMALL
139 const T& tolerance = SMALL
T degAngleBetween(const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
Calculate angle between a and b in degrees.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
dimensioned< scalar > mag(const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool areAcute(const Vector< T > &a, const Vector< T > &b)
Test if angle between a and b is acute: a.b > 0.
bool areObtuse(const Vector< T > &a, const Vector< T > &b)
Test if angle between a and b is obtuse: a.b < 0.
Templated 3D Vector derived from VectorSpace adding construction from 3 components, element access using x(), y() and z() member functions and the inner-product (dot-product) and cross product operators.
Functions for analysing the relationships between vectors.
T cosPhi(const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
Calculate angle between a and b in radians.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
scalar radToDeg(const scalar rad)
Conversion from radians to degrees.
Unit conversion functions.
dimensionedScalar acos(const dimensionedScalar &ds)
T radAngleBetween(const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
Calculate angle between a and b in radians.
bool areParallel(const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
Test if a and b are parallel: a^b = 0.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
bool areOrthogonal(const Vector< T > &a, const Vector< T > &b, const T &tolerance=SMALL)
Test if a and b are orthogonal: a.b = 0.