Templated 2D Vector derived from VectorSpace adding construction from 2 components, element access using x() and y() member functions and the inner-product (dot-product).
More...
#include <OpenFOAM/Vector2D_.H>
Detailed Description
template<class Cmpt>
class Foam::Vector2D< Cmpt >
Templated 2D Vector derived from VectorSpace adding construction from 2 components, element access using x() and y() member functions and the inner-product (dot-product).
- Source files
-
Definition at line 52 of file Vector2D_.H.
List of all members.
Public Member Functions |
| | Vector2D () |
| | Construct null.
|
| | Vector2D (const VectorSpace< Vector2D< Cmpt >, Cmpt, 2 > &) |
| | Construct given VectorSpace.
|
| | Vector2D (const Cmpt &vx, const Cmpt &vy) |
| | Construct given two components.
|
| | Vector2D (Istream &) |
| | Construct from Istream.
|
| const Cmpt & | x () const |
| const Cmpt & | y () const |
| Cmpt & | x () |
| Cmpt & | y () |
| scalar | perp (const Vector2D< Cmpt > &b) const |
| | perp dot product (dot product with perpendicular vector)
|
| | VectorSpace () |
| | Construct null.
|
| | VectorSpace (Istream &) |
| | Construct from Istream.
|
| | VectorSpace (const VectorSpace< Vector2D< Cmpt >, Cmpt, nCmpt > &) |
| | Construct as copy.
|
| label | size () const |
| | Return the number of elements in the VectorSpace = nCmpt.
|
| const Cmpt & | component (const direction) const |
| Cmpt & | component (const direction) |
| void | component (Cmpt &, const direction) const |
| void | replace (const direction, const Cmpt &) |
| const Cmpt & | operator[] (const direction) const |
| Cmpt & | operator[] (const direction) |
| void | operator= (const VectorSpace< Vector2D< Cmpt >, Cmpt, nCmpt > &) |
| void | operator+= (const VectorSpace< Vector2D< Cmpt >, Cmpt, nCmpt > &) |
| void | operator-= (const VectorSpace< Vector2D< Cmpt >, Cmpt, nCmpt > &) |
| void | operator*= (const scalar) |
| void | operator/= (const scalar) |
Additional Inherited Members |
| Cmpt | v_ [nCmpt] |
| | The components of this vector space.
|
Member Enumeration Documentation
Component labeling enumeration.
- Enumerator:
-
Definition at line 78 of file Vector2D_.H.
Constructor & Destructor Documentation
| Vector2D |
( |
const Cmpt & |
vx, |
|
|
const Cmpt & |
vy |
|
) |
| |
|
inline |
Construct given two components.
Definition at line 49 of file Vector2DI_.H.
References Y.
Member Function Documentation
| scalar perp |
( |
const Vector2D< Cmpt > & |
b | ) |
const |
|
inline |
Member Data Documentation
| const char* const typeName |
|
static |
| const char* componentNames[] |
|
static |
The documentation for this class was generated from the following files: