59 inline Ostream&
operator<<(Ostream&,
const triad&);
104 inline bool set(
const direction d)
const;
107 inline bool set()
const;
178 template<>
struct is_contiguous<triad> : std::true_type {};
181 template<>
struct is_contiguous_scalar<triad> : std::true_type {};
187 scalar
diff(
const triad&
A,
const triad&
B);
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
friend Istream & operator>>(Istream &, triad &)
void align(const vector &v)
Align this triad with the given vector v.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const vector & y() const noexcept
Access to the vector y component.
triad()
Default construct as 'unset'.
void orthogonalize()
Same as orthogonalise.
void operator=(const Vector< vector > &vv)
void orthogonalise()
Inplace orthogonalise so that it is ortho-normal.
void normalize()
Same as normalise.
Istream & operator>>(Istream &, directionInfo &)
triad sortxyz() const
Sort the axes such that they are closest to the x, y and z axes.
Quaternion class used to perform rotations in 3D space.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const vector & x() const noexcept
Access to the vector x component.
static direction primaryDirection(const vector &v)
Return the primary direction of the vector v.
static vector orthogonal(const vector &v1, const vector &v2)
Return the vector orthogonal to the two provided.
Representation of a 3D Cartesian coordinate system as a Vector of row vectors.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
vector cx() const
Extract vector for column 0.
triad T() const
Return transpose.
const vector & z() const noexcept
Access to the vector z component.
void operator+=(const triad &t2)
Add the triad t2 to this triad.
void normalise()
Normalise each set axis vector to have a unit magnitude.
friend Ostream & operator<<(Ostream &, const triad &)
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
Tensor of scalars, i.e. Tensor<scalar>.
vector cy() const
Extract vector for column 1.
vector cz() const
Extract vector for column 2.
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)