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...
Public Types | |
enum | components { X, Y } |
typedef Vector2D< label > | labelType |
![]() | |
typedef VectorSpace< Form, Cmpt, Ncmpts > | vsType |
typedef Cmpt | cmptType |
typedef Cmpt | magType |
typedef Cmpt * | iterator |
Public Member Functions | |
Vector2D ()=default | |
Vector2D (const Vector2D &)=default | |
Vector2D & | operator= (const Vector2D &)=default |
Vector2D (const Foam::zero) | |
Vector2D (const VectorSpace< Vector2D< Cmpt >, Cmpt, 2 > &vs) | |
Vector2D (const Cmpt &vx, const Cmpt &vy) | |
Vector2D (Istream &is) | |
const Cmpt & | x () const |
const Cmpt & | y () const |
Cmpt & | x () |
Cmpt & | y () |
Vector2D< Cmpt > & | normalise () |
scalar | perp (const Vector2D< Cmpt > &b) const |
bool | isClose (const Vector2D< Cmpt > &b, const scalar tol=1e-10) const |
![]() | |
VectorSpace ()=default | |
VectorSpace (const Foam::zero) | |
VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs) | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
VectorSpace (Istream &is) | |
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 |
Cmpt * | data () noexcept |
const ConstBlock< SubVector, BStart > | block () const |
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
Static Public Attributes | |
static constexpr direction | rank = 1 |
![]() | |
static constexpr direction | dim |
static constexpr direction | nComponents |
static constexpr direction | mRows |
static constexpr direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const Form | zero |
static const Form | one |
static const Form | max |
static const Form | min |
static const Form | rootMax |
static const Form | rootMin |
Additional Inherited Members | |
![]() | |
static constexpr direction | size () noexcept |
static Form | uniform (const Cmpt &s) |
![]() | |
const typedef Cmpt * | const_iterator |
Cmpt | v_ [Ncmpts] |
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 51 of file Vector2D.H.
Definition at line 60 of file Vector2D.H.
enum components |
Enumerator | |
---|---|
X | |
Y |
Definition at line 70 of file Vector2D.H.
|
default |
|
inline |
Definition at line 25 of file Vector2DI.H.
|
inline |
Definition at line 33 of file Vector2DI.H.
|
inline |
Definition at line 42 of file Vector2DI.H.
Definition at line 50 of file Vector2DI.H.
|
inline |
Definition at line 59 of file Vector2DI.H.
Referenced by Tensor2D< Cmpt >::col(), SymmTensor2D< Cmpt >::diag(), Tensor2D< Cmpt >::diag(), Foam::eigenVector(), Foam::eigenVectors(), triangle2D::interArea(), triangle2D::lineSegmentIntersectionPoint(), Foam::operator&(), Foam::operator*(), Tensor2D< Cmpt >::row(), and Foam::sqr().
|
inline |
Definition at line 66 of file Vector2DI.H.
Referenced by Tensor2D< Cmpt >::col(), SymmTensor2D< Cmpt >::diag(), Tensor2D< Cmpt >::diag(), Foam::eigenVector(), Foam::eigenVectors(), triangle2D::lineSegmentIntersectionPoint(), Foam::operator&(), Foam::operator*(), Tensor2D< Cmpt >::row(), and Foam::sqr().
|
inline |
|
inline |
|
inline |
Definition at line 87 of file Vector2DI.H.
|
inline |
Definition at line 120 of file Vector2DI.H.
Referenced by triangle2D::area(), triangle2D::lineSegmentIntersectionPoint(), and line::nearestDist().
Definition at line 128 of file Vector2DI.H.
Referenced by triangle2D::snapClosePoints().
|
staticconstexpr |
Definition at line 66 of file Vector2D.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.