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... | |
| typedef Cmpt | magType |
| Magnitude type. More... | |
| typedef direction | size_type |
| The type to represent the size of a VectorSpace. More... | |
| typedef Cmpt * | iterator |
| Random access iterator for traversing VectorSpace. More... | |
| typedef const Cmpt * | const_iterator |
| Random access iterator for traversing VectorSpace. More... | |
Public Member Functions | |
| Barycentric2D ()=default | |
| Default construct. More... | |
| Barycentric2D (const Foam::zero) | |
| Construct initialized to zero. More... | |
| Barycentric2D (const Cmpt &va, const Cmpt &vb, const Cmpt &vc) | |
| Construct from components. More... | |
| Barycentric2D (const Cmpt &va, const Cmpt &vb) | |
| Construct from two components, calculating third component. More... | |
| const Cmpt & | a () const noexcept |
| const Cmpt & | b () const noexcept |
| const Cmpt & | c () const noexcept |
| Cmpt & | a () noexcept |
| Cmpt & | b () noexcept |
| Cmpt & | c () noexcept |
| Cmpt | inner (const Barycentric2D< Cmpt > &b2) const |
Scalar-product of this with another Barycentric2D. More... | |
| bool | outside () const |
| True if any coordinate is negative. More... | |
Public Member Functions inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
| VectorSpace ()=default | |
| Default construct. More... | |
| VectorSpace (const VectorSpace &)=default | |
| Copy construct. More... | |
| VectorSpace (VectorSpace &&)=default | |
| Move construct. More... | |
| VectorSpace (Foam::zero) | |
| Construct initialized to zero. More... | |
| VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
| Copy construct of a VectorSpace with the same size. More... | |
| VectorSpace (Istream &is) | |
| Construct from Istream. More... | |
| const Cmpt & | component (const direction) const |
| Cmpt & | component (const direction) |
| void | component (Cmpt &, const direction) const |
| void | replace (const direction, const Cmpt &) |
| const Cmpt * | cdata () const noexcept |
| Return const pointer to the first data element. More... | |
| Cmpt * | data () noexcept |
| Return pointer to the first data element. More... | |
| void | fill (const Cmpt &s) |
| Assign all components to given value. More... | |
| const ConstBlock< SubVector, BStart > | block () const |
| const Foam::VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
| const Cmpt & | operator[] (const direction) const |
| Cmpt & | operator[] (const direction) |
| VectorSpace & | operator= (const VectorSpace &)=default |
| Copy assignment. More... | |
| VectorSpace & | operator= (VectorSpace &&)=default |
| Move assignment. More... | |
| void | operator= (const VectorSpace< Form2, Cmpt2, Ncmpts > &) |
| Copy assign from a VectorSpace with the same size. More... | |
| void | operator= (Foam::zero) |
| void | operator+= (const VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator-= (const VectorSpace< Barycentric2D< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator*= (const scalar) |
| void | operator/= (const scalar) |
| iterator | begin () noexcept |
| Return an iterator (pointer) to begin of VectorSpace. More... | |
| const_iterator | begin () const noexcept |
| Return const_iterator (const pointer) to begin of VectorSpace. More... | |
| const_iterator | cbegin () const noexcept |
| Return const_iterator (const pointer) to begin of VectorSpace. More... | |
| iterator | end () noexcept |
| Return an iterator (pointer) to end of VectorSpace. More... | |
| const_iterator | end () const noexcept |
| Return const_iterator (const pointer) to end of VectorSpace. More... | |
| const_iterator | cend () const noexcept |
| Return const_iterator (const pointer) to end of VectorSpace. More... | |
Static Public Attributes | |
| static constexpr direction | rank = 1 |
| Rank of Barycentric2D is 1. More... | |
Static Public Attributes inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 > | |
| static constexpr direction | dim |
| Dimensionality of space. More... | |
| static constexpr direction | nComponents |
| Number of components in this vector space. More... | |
| static constexpr direction | mRows |
| static constexpr 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 constexpr direction | size () noexcept |
| 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 61 of file Barycentric2D.H.
| enum components |
|
default |
Default construct.
|
inline |
Construct initialized to zero.
Definition at line 25 of file Barycentric2DI.H.
|
inline |
|
inline |
Construct from two components, calculating third component.
Definition at line 47 of file Barycentric2DI.H.
|
inlinenoexcept |
Definition at line 108 of file Barycentric2D.H.
References Barycentric2D< Cmpt >::A, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
Referenced by Barycentric2D< Cmpt >::inner().

|
inlinenoexcept |
Definition at line 109 of file Barycentric2D.H.
References Barycentric2D< Cmpt >::B, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
Referenced by Barycentric2D< Cmpt >::inner().

|
inlinenoexcept |
Definition at line 110 of file Barycentric2D.H.
References Barycentric2D< Cmpt >::C, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
Referenced by Barycentric2D< Cmpt >::inner().

|
inlinenoexcept |
Definition at line 112 of file Barycentric2D.H.
References Barycentric2D< Cmpt >::A, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
inlinenoexcept |
Definition at line 113 of file Barycentric2D.H.
References Barycentric2D< Cmpt >::B, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
inlinenoexcept |
Definition at line 114 of file Barycentric2D.H.
References Barycentric2D< Cmpt >::C, and VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >::v_.
|
inline |
Scalar-product of this with another Barycentric2D.
Definition at line 60 of file Barycentric2DI.H.
References Barycentric2D< Cmpt >::a(), Barycentric2D< Cmpt >::b(), and Barycentric2D< Cmpt >::c().
Referenced by Foam::operator &().


|
inline |
True if any coordinate is negative.
Definition at line 71 of file Barycentric2DI.H.
Referenced by lumpedPointMovement::setInterpolator().

|
static |
Rank of Barycentric2D is 1.
Definition at line 69 of file Barycentric2D.H.