moab
CartVect3D Struct Reference

List of all members.

Public Member Functions

 CartVect3D ()
 CartVect3D (double x_, double y_, double z_)
CartVect3Doperator+= (const CartVect3D &o)
CartVect3Doperator-= (const CartVect3D &o)
CartVect3Doperator*= (const CartVect3D &)
CartVect3Doperator+= (double v)
CartVect3Doperator-= (double v)
CartVect3Doperator*= (double v)
CartVect3Doperator/= (double v)
double len () const

Public Attributes

double x
double y
double z

Detailed Description

Definition at line 34 of file surfplot.cpp.


Constructor & Destructor Documentation

CartVect3D::CartVect3D ( ) [inline]

Definition at line 38 of file surfplot.cpp.

{}
CartVect3D::CartVect3D ( double  x_,
double  y_,
double  z_ 
) [inline]

Definition at line 40 of file surfplot.cpp.

      : x(x_), y(y_), z(z_) {}

Member Function Documentation

double CartVect3D::len ( ) const [inline]

Definition at line 63 of file surfplot.cpp.

      { return sqrt( x*x + y*y + z*z ); }
CartVect3D & CartVect3D::operator*= ( const CartVect3D o)

Definition at line 88 of file surfplot.cpp.

  { *this = *this * o; return *this; }
CartVect3D& CartVect3D::operator*= ( double  v) [inline]

Definition at line 57 of file surfplot.cpp.

      { x *= v; y *= v; z *= v; return *this; }
CartVect3D& CartVect3D::operator+= ( const CartVect3D o) [inline]

Definition at line 43 of file surfplot.cpp.

      { x += o.x; y += o.y; z += o.z; return *this; }
CartVect3D& CartVect3D::operator+= ( double  v) [inline]

Definition at line 51 of file surfplot.cpp.

      { x += v; y += v; z += v; return *this; }
CartVect3D& CartVect3D::operator-= ( const CartVect3D o) [inline]

Definition at line 46 of file surfplot.cpp.

      { x -= o.x; y -= o.y; z -= o.z; return *this; }
CartVect3D& CartVect3D::operator-= ( double  v) [inline]

Definition at line 54 of file surfplot.cpp.

      { x -= v; y -= v; z -= v; return *this; }
CartVect3D& CartVect3D::operator/= ( double  v) [inline]

Definition at line 60 of file surfplot.cpp.

      { x /= v; y /= v; z /= v; return *this; }

Member Data Documentation

double CartVect3D::x

Definition at line 36 of file surfplot.cpp.

double CartVect3D::y

Definition at line 36 of file surfplot.cpp.

double CartVect3D::z

Definition at line 36 of file surfplot.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines