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>
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).
Definition at line 52 of file Vector2D_.H.
Inheritance diagram for Vector2D< Cmpt >:
Collaboration diagram for Vector2D< Cmpt >:Public Types | |
| enum | { rank = 1 } |
| enum | components { X, Y } |
Component labeling enumeration. More... | |
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)
| |
Static Public Attributes | |
| static const char *const | typeName |
| static const char * | componentNames [] |
| static const Vector2D | zero |
| static const Vector2D | one |
| static const Vector2D | max |
| static const Vector2D | min |
| anonymous enum |
Definition at line 61 of file Vector2D_.H.
| enum components |
| Vector2D | ( | ) | [inline]
|
Construct null.
Definition at line 35 of file Vector2DI_.H.
| Vector2D | ( | const VectorSpace< Vector2D< Cmpt >, Cmpt, 2 > & | vs ) | [inline]
|
Construct given VectorSpace.
Definition at line 41 of file Vector2DI_.H.
| Vector2D | ( | const Cmpt & | vx, |
| const Cmpt & | vy | ||
| ) | [inline]
|
Construct from Istream.
Definition at line 58 of file Vector2DI_.H.
| const Cmpt & x | ( | ) | const [inline]
|
Definition at line 67 of file Vector2DI_.H.
Referenced by Foam::eigenVectors(), Foam::operator&(), Foam::operator*(), Vector2D< Cmpt >::perp(), Tensor2D< Cmpt >::Tensor2D(), and interactionLists::testPointFaceDistance().
| const Cmpt & y | ( | ) | const [inline]
|
Definition at line 73 of file Vector2DI_.H.
References Y.
Referenced by Foam::eigenVectors(), Foam::operator&(), Foam::operator*(), Vector2D< Cmpt >::perp(), Tensor2D< Cmpt >::Tensor2D(), and interactionLists::testPointFaceDistance().
| Cmpt & x | ( | ) | [inline]
|
Definition at line 80 of file Vector2DI_.H.
| Cmpt & y | ( | ) | [inline]
|
Definition at line 86 of file Vector2DI_.H.
References Y.
| scalar perp | ( | const Vector2D< Cmpt > & | b ) | const [inline]
|
perp dot product (dot product with perpendicular vector)
Definition at line 103 of file Vector2DI_.H.
References Vector2D< Cmpt >::x(), y, and Vector2D< Cmpt >::y().
Referenced by line< Point, PointRef >::nearestDist().
const char* const typeName [static]
|
Definition at line 69 of file Vector2D_.H.
const char* componentNames[] [static]
|
Definition at line 70 of file Vector2D_.H.
Definition at line 71 of file Vector2D_.H.
Definition at line 72 of file Vector2D_.H.
Definition at line 73 of file Vector2D_.H.
Definition at line 74 of file Vector2D_.H.