ESyS-Particle  2.3.4
esys::lsm::Vec3Py Class Reference

#include <Vec3Py.h>

Inheritance diagram for esys::lsm::Vec3Py:
Collaboration diagram for esys::lsm::Vec3Py:

Public Member Functions

 Vec3Py ()
 
 Vec3Py (double x, double y, double z)
 
 Vec3Py (const Vec3Py &v)
 
 Vec3Py (const Vec3 &v)
 
 Vec3Py (const boost::python::object &pyOb)
 
int len () const
 
double getItem (int i) const
 
void setItem (int i, double val)
 
Vec3Py operator- (const Vec3Py &v) const
 
Vec3Py operator+ (const Vec3Py &v) const
 
Vec3Py operator+ (double s) const
 
Vec3Py operator- (double s) const
 
Vec3Py operator* (double s) const
 
Vec3Py operator/ (double s) const
 
Vec3Py rotatePy (const Vec3Py &axis, const Vec3Py &axisPt) const
 
double norm () const
 
double dot (const Vec3Py &v) const
 
Vec3Py cross (const Vec3Py &v) const
 
std::string toString () const
 
boost::python::list toList () const
 
boost::python::tuple toTuple () const
 
int getIndex (int i) const
 
- Public Member Functions inherited from Vec3
VEC3_INLINE Vec3 ()
 The zero vector. More...
 
VEC3_INLINE Vec3 (double s)
 
VEC3_INLINE Vec3 (double, double, double)
 
VEC3_INLINE Vec3 (const Vec3 &)
 
VEC3_INLINE Vec3operator= (const Vec3 &)
 
VEC3_INLINE Vec3operator= (double s)
 
VEC3_INLINE Vec3operator-= (const Vec3 &)
 
VEC3_INLINE Vec3operator+= (const Vec3 &)
 
VEC3_INLINE Vec3 operator+ (const Vec3 &) const
 
VEC3_INLINE Vec3 operator- (const Vec3 &) const
 
VEC3_INLINE Vec3 operator* (const Matrix3 &m) const
 
VEC3_INLINE double operator* (const Vec3 &) const
 
VEC3_INLINE Vec3 operator- () const
 
VEC3_INLINE Vec3 operator* (double) const
 
VEC3_INLINE Vec3operator*= (double)
 
VEC3_INLINE Vec3 operator/ (double) const
 
VEC3_INLINE Vec3 operator- (double) const
 
VEC3_INLINE Vec3 operator+ (double) const
 
VEC3_INLINE Vec3operator+= (double)
 
VEC3_INLINE Vec3operator-= (double)
 
VEC3_INLINE Vec3operator/= (double)
 
VEC3_INLINE double norm () const
 
VEC3_INLINE double norm2 () const
 
VEC3_INLINE Vec3 unit () const
 
VEC3_INLINE Vec3 unit_s () const
 
VEC3_INLINE double max () const
 
VEC3_INLINE double min () const
 
VEC3_INLINE Vec3 rotate (const Vec3 &axis, const Vec3 &axisPt) const
 
VEC3_INLINE bool operator== (const Vec3 &) const
 
VEC3_INLINE bool operator!= (const Vec3 &) const
 
VEC3_INLINE void mul_add_and_assign (const Vec3 *, const Vec3 *, const double &)
 
VEC3_INLINE void mul_and_assign (const Vec3 *, const double &)
 
VEC3_INLINE Vec3 (const VDMulVadd &)
 
VEC3_INLINE Vec3operator= (const VDMulVadd &)
 
VEC3_INLINE Vec3 (const VDMul &)
 
VEC3_INLINE Vec3operator= (const VDMul &)
 
VEC3_INLINE void set_x (double x)
 
VEC3_INLINE void set_y (double y)
 
VEC3_INLINE void set_z (double z)
 
VEC3_INLINE double & X ()
 
VEC3_INLINE double & Y ()
 
VEC3_INLINE double & Z ()
 
VEC3_INLINE double X () const
 
VEC3_INLINE double Y () const
 
VEC3_INLINE double Z () const
 
VEC3_INLINE const double & operator[] (int i) const
 
VEC3_INLINE double & operator[] (int i)
 
bool operator< (const Vec3 &) const
 
 Vec3 ()
 
 Vec3 (double, double, double)
 
 Vec3 (const Vec3 &)
 
Vec3operator= (const Vec3 &)
 
Vec3operator-= (const Vec3 &)
 
Vec3operator+= (const Vec3 &)
 
Vec3 operator+ (const Vec3 &) const
 
Vec3 operator- (const Vec3 &) const
 
double operator* (const Vec3 &) const
 
Vec3 operator- ()
 
Vec3 operator* (double) const
 
Vec3 operator/ (double) const
 
double norm () const
 
double norm2 () const
 
Vec3 unit () const
 
Vec3 unit_s () const
 
double max () const
 
double min () const
 
bool operator== (const Vec3 &)
 
bool operator!= (const Vec3 &)
 
void mul_add_and_assign (const Vec3 *, const Vec3 *, const double &)
 
void mul_and_assign (const Vec3 *, const double &)
 
 Vec3 (const VDMulVadd &)
 
Vec3operator= (const VDMulVadd &)
 
 Vec3 (const VDMul &)
 
Vec3operator= (const VDMul &)
 
double X () const
 
double Y () const
 
double Z () const
 
double operator[] (int i) const
 
double & operator[] (int i)
 

Additional Inherited Members

- Static Public Attributes inherited from Vec3
static const Vec3 ZERO = Vec3(0.0, 0.0, 0.0)
 
- Protected Attributes inherited from Vec3
double data [3]
 

Constructor & Destructor Documentation

◆ Vec3Py() [1/5]

esys::lsm::Vec3Py::Vec3Py ( )

Referenced by operator*(), operator+(), operator-(), operator/(), and Vec3Py().

Here is the caller graph for this function:

◆ Vec3Py() [2/5]

esys::lsm::Vec3Py::Vec3Py ( double  x,
double  y,
double  z 
)

◆ Vec3Py() [3/5]

esys::lsm::Vec3Py::Vec3Py ( const Vec3Py v)

◆ Vec3Py() [4/5]

esys::lsm::Vec3Py::Vec3Py ( const Vec3 v)

◆ Vec3Py() [5/5]

esys::lsm::Vec3Py::Vec3Py ( const boost::python::object &  pyOb)

References esys::lsm::bpu::len(), and Vec3Py().

Here is the call graph for this function:

Member Function Documentation

◆ cross()

Vec3Py esys::lsm::Vec3Py::cross ( const Vec3Py v) const

References cross().

Referenced by esys::lsm::exportVec3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dot()

double esys::lsm::Vec3Py::dot ( const Vec3Py v) const

References dot().

Referenced by esys::lsm::exportVec3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIndex()

int esys::lsm::Vec3Py::getIndex ( int  i) const

References len().

Referenced by getItem(), and setItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItem()

double esys::lsm::Vec3Py::getItem ( int  i) const

References getIndex().

Referenced by esys::lsm::exportVec3(), and toList().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ len()

int esys::lsm::Vec3Py::len ( ) const

Referenced by esys::lsm::exportVec3(), getIndex(), and esys::lsm::WallForcePairPy::WallForcePairPy().

Here is the caller graph for this function:

◆ norm()

double esys::lsm::Vec3Py::norm ( ) const

References Vec3::norm().

Referenced by esys::lsm::exportVec3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*()

Vec3Py esys::lsm::Vec3Py::operator* ( double  s) const

References Vec3Py().

Here is the call graph for this function:

◆ operator+() [1/2]

Vec3Py esys::lsm::Vec3Py::operator+ ( const Vec3Py v) const

References Vec3Py().

Here is the call graph for this function:

◆ operator+() [2/2]

Vec3Py esys::lsm::Vec3Py::operator+ ( double  s) const

References Vec3Py().

Here is the call graph for this function:

◆ operator-() [1/2]

Vec3Py esys::lsm::Vec3Py::operator- ( const Vec3Py v) const

References Vec3Py().

Here is the call graph for this function:

◆ operator-() [2/2]

Vec3Py esys::lsm::Vec3Py::operator- ( double  s) const

References Vec3Py().

Here is the call graph for this function:

◆ operator/()

Vec3Py esys::lsm::Vec3Py::operator/ ( double  s) const

References Vec3Py().

Here is the call graph for this function:

◆ rotatePy()

Vec3Py esys::lsm::Vec3Py::rotatePy ( const Vec3Py axis,
const Vec3Py axisPt 
) const

References Vec3::rotate().

Referenced by esys::lsm::exportVec3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setItem()

void esys::lsm::Vec3Py::setItem ( int  i,
double  val 
)

References getIndex().

Referenced by esys::lsm::exportVec3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toList()

boost::python::list esys::lsm::Vec3Py::toList ( ) const

References getItem().

Referenced by esys::lsm::exportVec3(), and toTuple().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

std::string esys::lsm::Vec3Py::toString ( ) const

References esys::lsm::StringUtil::toString().

Here is the call graph for this function:

◆ toTuple()

boost::python::tuple esys::lsm::Vec3Py::toTuple ( ) const

References toList().

Referenced by esys::lsm::exportVec3(), and esys::lsm::Vec3PyPickleSuite::getinitargs().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: