126 if (
set(0)) (*this)[0].normalise();
127 if (
set(1)) (*this)[1].normalise();
128 if (
set(2)) (*this)[2].normalise();
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Vector< Cmpt > z() const
Extract vector for row 2.
Vector< Cmpt > y() const
Extract vector for row 1.
Vector< Cmpt > x() const
Extract vector for row 0.
const Cmpt & operator[](const direction) const
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
const vector & x() const noexcept
Vector & operator=(const Vector &)=default
Copy assignment.
const vector & z() const noexcept
const vector & y() const noexcept
Representation of a 3D Cartesian coordinate system as a Vector of row vectors.
bool set() const
Are all the vector set.
vector cz() const
Extract vector for column 2.
void operator=(const Vector< vector > &vv)
static direction primaryDirection(const vector &v)
Return the primary direction of the vector v.
triad T() const
Return transpose.
triad()
Default construct as 'unset'.
bool set(const direction d) const
Is the vector in the direction d set.
vector cy() const
Extract vector for column 1.
vector cx() const
Extract vector for column 0.
void normalise()
Normalise each set axis vector to have a unit magnitude.
static vector orthogonal(const vector &v1, const vector &v2)
Return the vector orthogonal to the two provided.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Istream & operator>>(Istream &, directionInfo &)