Loading [MathJax]/extensions/tex2jax.js
Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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() [1/2]

CartVect3D::CartVect3D ( )
inline

Definition at line 37 of file surfplot.cpp.

37 : x( 0.0 ), y( 0.0 ), z( 0.0 ) {}

◆ CartVect3D() [2/2]

CartVect3D::CartVect3D ( double  x_,
double  y_,
double  z_ 
)
inline

Definition at line 39 of file surfplot.cpp.

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

Member Function Documentation

◆ len()

double CartVect3D::len ( ) const
inline

Definition at line 91 of file surfplot.cpp.

92  { 93  return sqrt( x * x + y * y + z * z ); 94  }

References x, y, and z.

Referenced by find_rotation(), and main().

◆ operator*=() [1/2]

CartVect3D & CartVect3D::operator*= ( const CartVect3D o)

Definition at line 122 of file surfplot.cpp.

123 { 124  *this = *this * o; 125  return *this; 126 }

◆ operator*=() [2/2]

CartVect3D& CartVect3D::operator*= ( double  v)
inline

Definition at line 75 of file surfplot.cpp.

76  { 77  x *= v; 78  y *= v; 79  z *= v; 80  return *this; 81  }

References x, y, and z.

◆ operator+=() [1/2]

CartVect3D& CartVect3D::operator+= ( const CartVect3D o)
inline

Definition at line 41 of file surfplot.cpp.

42  { 43  x += o.x; 44  y += o.y; 45  z += o.z; 46  return *this; 47  }

References x, y, and z.

◆ operator+=() [2/2]

CartVect3D& CartVect3D::operator+= ( double  v)
inline

Definition at line 59 of file surfplot.cpp.

60  { 61  x += v; 62  y += v; 63  z += v; 64  return *this; 65  }

References x, y, and z.

◆ operator-=() [1/2]

CartVect3D& CartVect3D::operator-= ( const CartVect3D o)
inline

Definition at line 49 of file surfplot.cpp.

50  { 51  x -= o.x; 52  y -= o.y; 53  z -= o.z; 54  return *this; 55  }

References x, y, and z.

◆ operator-=() [2/2]

CartVect3D& CartVect3D::operator-= ( double  v)
inline

Definition at line 67 of file surfplot.cpp.

68  { 69  x -= v; 70  y -= v; 71  z -= v; 72  return *this; 73  }

References x, y, and z.

◆ operator/=()

CartVect3D& CartVect3D::operator/= ( double  v)
inline

Definition at line 83 of file surfplot.cpp.

84  { 85  x /= v; 86  y /= v; 87  z /= v; 88  return *this; 89  }

References x, y, and z.

Member Data Documentation

◆ x

◆ y

◆ z

double CartVect3D::z

The documentation for this struct was generated from the following file: