Templated 2D Barycentric derived from VectorSpace. Has 3 components, one of which is redundant. More...
Public Types | |
enum | components { A, B, C } |
Component labeling enumeration. More... | |
typedef Barycentric2D< label > | labelType |
Equivalent type of labels used for valid component indexing. More... | |
Public Types inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
typedef VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
Barycentric2D () | |
Construct null. More... | |
Barycentric2D (const Foam::zero) | |
Construct initialized to zero. More... | |
Barycentric2D (const Cmpt &va, const Cmpt &vb, const Cmpt &vc) | |
Construct given four components. More... | |
const Cmpt & | a () const |
const Cmpt & | b () const |
const Cmpt & | c () const |
Cmpt & | a () |
Cmpt & | b () |
Cmpt & | c () |
Public Member Functions inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (const Foam::zero) | |
Construct initialized to zero. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const ConstBlock< SubVector, BStart > | block () const |
const VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Attributes | |
static const direction | rank = 1 |
Rank of Barycentric2D is 1. More... | |
Static Public Attributes inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
static const direction | dim |
Dimensionality of space. More... | |
static const direction | nComponents |
Number of components in this vector space. More... | |
static const direction | mRows |
static const direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const Barycentric2D< Cmpt > | zero |
static const Barycentric2D< Cmpt > | one |
static const Barycentric2D< Cmpt > | max |
static const Barycentric2D< Cmpt > | min |
static const Barycentric2D< Cmpt > | rootMax |
static const Barycentric2D< Cmpt > | rootMin |
Additional Inherited Members | |
Static Public Member Functions inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static Barycentric2D< Cmpt > | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
Templated 2D Barycentric derived from VectorSpace. Has 3 components, one of which is redundant.
Definition at line 50 of file Barycentric2D.H.
typedef Barycentric2D<label> labelType |
Equivalent type of labels used for valid component indexing.
Definition at line 57 of file Barycentric2D.H.
enum components |
|
inline |
Construct null.
Definition at line 29 of file Barycentric2DI.H.
Referenced by Barycentric2D< Cmpt >::Barycentric2D().
|
inline |
Construct initialized to zero.
Definition at line 34 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::Barycentric2D().
|
inline |
Construct given four components.
Definition at line 42 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::A, Barycentric2D< Cmpt >::B, Barycentric2D< Cmpt >::C, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
inline |
Definition at line 57 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::A, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
Referenced by Foam::operator &().
|
inline |
Definition at line 64 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::B, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
Referenced by Foam::operator &().
|
inline |
Definition at line 71 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::C, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
Referenced by Foam::operator &().
|
inline |
Definition at line 78 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::A, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
inline |
Definition at line 85 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::B, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
inline |
Definition at line 92 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::C, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
static |
Rank of Barycentric2D is 1.
Definition at line 63 of file Barycentric2D.H.