|
|
|
Vector2D Class Template ReferenceInheritance diagram for Vector2D:![]() ![]() Detailed Descriptiontemplate<class 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 () |
Static Public Attributes | |
| static const char *const | typeName |
| static const char * | componentNames [] |
| static const Vector2D | zero |
| static const Vector2D | one |
| anonymous enum |
| enum components |
| Vector2D | ( | ) | [inline] |
| Vector2D | ( | const VectorSpace< Vector2D< Cmpt >, Cmpt, 2 > & | ) | [inline] |
Construct given VectorSpace.
Definition at line 47 of file Vector2DI.H.
References VectorSpace::v_, Vector2D::X, and Vector2D::Y.
| Vector2D | ( | const Cmpt & | vx, | |
| const Cmpt & | vy | |||
| ) | [inline] |
Construct from Istream.
Definition at line 64 of file Vector2DI.H.
References VectorSpace::v_, and Vector2D::X.
| const Cmpt & x | ( | ) | const [inline] |
| const Cmpt & y | ( | ) | const [inline] |
| Cmpt & x | ( | ) | [inline] |
| Cmpt & y | ( | ) | [inline] |
Definition at line 92 of file Vector2DI.H.
References v1, v2, Vector::x(), and Vector::y().
Here is the call graph for this function:

const char* const typeName [static] |
Definition at line 77 of file Vector2D.H.
const char* componentNames[] [static] |
Definition at line 78 of file Vector2D.H.
Definition at line 79 of file Vector2D.H.
Definition at line 80 of file Vector2D.H.