58 operator[](primaryDirection(pa)) = pa;
72 return operator[](d)[0] < GREAT;
78 return set(0) &&
set(1) &&
set(2);
126 if (
set(0)) (*this)[0].normalise();
127 if (
set(1)) (*this)[1].normalise();
128 if (
set(2)) (*this)[2].normalise();
146 return vector(
x().z(),
y().z(), z().z());
152 return triad(cx(), cy(), cz());
183 os << static_cast<const Vector<vector>&>(t);
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
triad()
Default construct as 'unset'.
void operator=(const Vector< vector > &vv)
void unset(List< bool > &bools, const labelUList &locations)
Unset the listed locations (assign 'false').
Istream & operator>>(Istream &, directionInfo &)
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...
OBJstream os(runTime.globalPath()/outputName)
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.
void normalise()
Normalise each set axis vector to have a unit magnitude.
Vector & operator=(const Vector &)=default
Copy assignment.
Tensor of scalars, i.e. Tensor<scalar>.
vector cy() const
Extract vector for column 1.
bool set() const
Are all the vector set.
vector cz() const
Extract vector for column 2.