Go to the documentation of this file.
99 inline Vector2D(
const Cmpt& vx,
const Cmpt& vy);
108 inline const Cmpt&
x()
const;
111 inline const Cmpt&
y()
const;
129 const scalar tol = 1
e-10
bool isClose(const Vector2D< Cmpt > &b, const scalar tol=1e-10) const
Return true if vector is within tol.
static constexpr direction rank
Rank of Vector2D is 1.
components
Component labeling enumeration.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
A template class to specify if a data type is composed solely of Foam::label elements.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Vector2D< label > labelType
Equivalent type of labels used for valid component indexing.
Vector2D()=default
Default construct.
Vector2D & operator=(const Vector2D &)=default
Copy assignment.
A template class to specify if a data type is composed solely of Foam::scalar elements.
Vector2D< Cmpt > & normalise()
Normalise the vector by its magnitude.
const dimensionedScalar e
Elementary charge.
const Cmpt & y() const
Access to the vector y component.
scalar perp(const Vector2D< Cmpt > &b) const
Perp dot product (dot product with perpendicular vector)
const Cmpt & x() const
Access to the vector x component.
A template class to specify that a data type can be considered as being contiguous in memory.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...