MOAB: Mesh Oriented datABase  (version 5.4.1)
CartVect3D Struct Reference

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 32 of file surfplot.cpp.


Constructor & Destructor Documentation

CartVect3D::CartVect3D ( ) [inline]

Definition at line 37 of file surfplot.cpp.

: x( 0.0 ), y( 0.0 ), z( 0.0 ) {}
CartVect3D::CartVect3D ( double  x_,
double  y_,
double  z_ 
) [inline]

Definition at line 39 of file surfplot.cpp.

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

Member Function Documentation

double CartVect3D::len ( ) const [inline]

Definition at line 91 of file surfplot.cpp.

References x, y, and z.

Referenced by find_rotation(), and main().

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

Definition at line 122 of file surfplot.cpp.

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

Definition at line 75 of file surfplot.cpp.

References x, y, and z.

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

Definition at line 41 of file surfplot.cpp.

References x, y, and z.

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

Definition at line 59 of file surfplot.cpp.

References x, y, and z.

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

Definition at line 49 of file surfplot.cpp.

References x, y, and z.

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

Definition at line 67 of file surfplot.cpp.

References x, y, and z.

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

Definition at line 83 of file surfplot.cpp.

References x, y, and z.

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

Member Data Documentation

List of all members.


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