![]() |
Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
Public Member Functions | |
CartVect3D () | |
CartVect3D (double x_, double y_, double z_) | |
CartVect3D & | operator+= (const CartVect3D &o) |
CartVect3D & | operator-= (const CartVect3D &o) |
CartVect3D & | operator*= (const CartVect3D &) |
CartVect3D & | operator+= (double v) |
CartVect3D & | operator-= (double v) |
CartVect3D & | operator*= (double v) |
CartVect3D & | operator/= (double v) |
double | len () const |
Public Attributes | |
double | x |
double | y |
double | z |
Definition at line 32 of file surfplot.cpp.
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_ ) {}
double CartVect3D::len | ( | ) | const [inline] |
Definition at line 91 of file surfplot.cpp.
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.
{
x *= v;
y *= v;
z *= v;
return *this;
}
CartVect3D& CartVect3D::operator+= | ( | const CartVect3D & | o | ) | [inline] |
Definition at line 41 of file surfplot.cpp.
{
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.
{
x += v;
y += v;
z += v;
return *this;
}
CartVect3D& CartVect3D::operator-= | ( | const CartVect3D & | o | ) | [inline] |
Definition at line 49 of file surfplot.cpp.
{
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.
{
x -= v;
y -= v;
z -= v;
return *this;
}
CartVect3D& CartVect3D::operator/= | ( | double | v | ) | [inline] |
Definition at line 83 of file surfplot.cpp.
{
x /= v;
y /= v;
z /= v;
return *this;
}
double CartVect3D::x |
Definition at line 35 of file surfplot.cpp.
Referenced by box_max(), box_min(), find_rotation(), len(), main(), operator%(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), transform_point(), write_eps(), and write_svg().
double CartVect3D::y |
Definition at line 35 of file surfplot.cpp.
Referenced by box_max(), box_min(), find_rotation(), len(), main(), operator%(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), transform_point(), write_eps(), and write_svg().
double CartVect3D::z |
Definition at line 35 of file surfplot.cpp.
Referenced by find_rotation(), len(), main(), operator%(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), and transform_point().