|
|
|
Vector Class Template ReferenceInheritance diagram for Vector:![]() ![]() Detailed Descriptiontemplate<class Cmpt>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| enum | { rank = 1 } |
| enum | components { X, Y, Z } |
| Component labeling enumeration. More... | |
| typedef Vector< label > | labelType |
| Equivalent type of labels used for valid component indexing. | |
Public Member Functions | |
| Vector () | |
| Construct null. | |
| Vector (const VectorSpace< Vector< Cmpt >, Cmpt, 3 > &) | |
| Construct given VectorSpace. | |
| Vector (const Cmpt &vx, const Cmpt &vy, const Cmpt &vz) | |
| Construct given three components. | |
| Vector (Istream &) | |
| Construct from Istream. | |
| const Cmpt & | x () const |
| const Cmpt & | y () const |
| const Cmpt & | z () const |
| Cmpt & | x () |
| Cmpt & | y () |
| Cmpt & | z () |
| const Vector< Cmpt > & | centre (const List< Vector< Cmpt > > &) const |
| Return *this (used for point which is a typedef to Vector<scalar>. | |
Static Public Attributes | |
| static const char *const | typeName |
| static const char * | componentNames [] |
| static const Vector | zero |
| static const Vector | one |
| enum components |
| Vector | ( | const VectorSpace< Vector< Cmpt >, Cmpt, 3 > & | ) | [inline] |
Construct given VectorSpace.
Definition at line 47 of file VectorI.H.
References VectorSpace::v_, Vector::X, Vector::Y, and Vector::Z.
| Vector | ( | const Cmpt & | vx, | |
| const Cmpt & | vy, | |||
| const Cmpt & | vz | |||
| ) | [inline] |
Construct from Istream.
Definition at line 65 of file VectorI.H.
References VectorSpace::v_, and Vector::X.
| const Cmpt & x | ( | ) | const [inline] |
Definition at line 74 of file VectorI.H.
References VectorSpace::v_, and Vector::Y.
Referenced by Vector::centre(), triangle::classify(), boundBox::mag(), Foam::operator &(), Foam::operator &&(), Foam::operator-(), treeBoundBox::treeBoundBox(), and Vector2D::y().
Here is the caller graph for this function:

| const Cmpt & y | ( | ) | const [inline] |
Definition at line 80 of file VectorI.H.
References VectorSpace::v_, and Vector::Z.
Referenced by Vector::centre(), triangle::classify(), boundBox::mag(), Foam::operator &(), Foam::operator &&(), Foam::operator *(), Foam::operator-(), treeBoundBox::treeBoundBox(), and Vector2D::y().
Here is the caller graph for this function:

| const Cmpt & z | ( | ) | const [inline] |
Definition at line 86 of file VectorI.H.
References VectorSpace::v_, and Vector::X.
Referenced by Vector::centre(), triangle::classify(), boundBox::mag(), Foam::operator &(), Foam::operator &&(), Foam::operator *(), and treeBoundBox::treeBoundBox().
Here is the caller graph for this function:

| Cmpt & x | ( | ) | [inline] |
| Cmpt & y | ( | ) | [inline] |
Return *this (used for point which is a typedef to Vector<scalar>.
Definition at line 117 of file VectorI.H.
References v1, v2, Vector::x(), Vector::y(), and Vector::z().
Here is the call graph for this function:

const char* componentNames[] [static] |