Go to the documentation of this file.
58 operator[](primaryDirection(pa)) = pa;
72 return operator[](d)[0] < GREAT;
78 return set(0) && set(1) && set(2);
107 scalar magV3 =
mag(v3);
122 if (set(0)) operator[](0) /=
mag(
operator[](0));
123 if (set(1)) operator[](1) /=
mag(
operator[](1));
124 if (set(2)) operator[](2) /=
mag(
operator[](2));
142 return vector(
x().z(),
y().z(), z().z());
148 return triad(cx(), cy(), cz());
179 os << static_cast<const Vector<vector>&>(t);
Vector & operator=(const Vector &)=default
Copy assignment.
const Cmpt & x() const
Access to the vector x component.
Vector< Cmpt > z() const
Extract vector for row 2.
triad T() const
Return transpose.
void normalize()
Normalize 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.
Istream & operator>>(Istream &, directionInfo &)
vector cx() const
Extract vector for column 0.
vector cz() const
Extract vector for column 2.
static direction primaryDirection(const vector &v)
Return the primary direction of the vector v.
const Cmpt & z() const
Access to the vector z component.
void operator=(const Vector< vector > &vv)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Vector< Cmpt > x() const
Extract vector for row 0.
vector cy() const
Extract vector for column 1.
Vector< scalar > vector
A scalar version of the templated Vector.
Representation of a 3D Cartesian coordinate system as a Vector of row vectors.
const Cmpt & y() const
Access to the vector y component.
Vector< Cmpt > y() const
Extract vector for row 1.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
bool set() const
Are all the vector set.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...