C3D Kernel  104598
Three-Dimensional Base Objects
Algorithm Objects
Collaboration diagram for Three-Dimensional Base Objects:

## Classes

class  MbAxis3D
The axis-vector which is attached to a fixed point. More...
class  MbCartPoint3D
The three-dimensional point. More...
class  MbCube
The bounding box. More...
class  MbHomogeneous3D
Extended point with homogeneous coordinates in the three-dimensional space. More...
class  MbMatrix3D
The extended matrix of transformation in a three-dimensional space. More...
class  MbPlacement3D
Local coordinate system in three dimensional space. More...
class  MbRect1D
One-dimensional cube. More...
class  MbRect2D
A two-dimensional cube. More...
class  MbRect3D
Three-dimensional cube. More...
class  MbVector3D
Vector in three-dimensional space. More...

## Enumerations

enum  MbeLocalSystemType3D { ls_CartesianSystem, ls_CylindricalSystem, ls_SphericalSystem }
Types of local coordinate systems in three dimensional space. More...

## Functions

template<class BBox >
bool c3d::EqualCubes (const BBox &c1, const BBox &c2, double eps)
Check for equality of boxes with controlled tolerance.
MbCartPoint3D operator* (const MbCartPoint3D &pnt, double factor)
The multiplication of a point by a number.
MbCartPoint3D operator/ (const MbCartPoint3D &pnt, double factor)
The division of a point by a number.
MbCartPoint3D operator* (double factor, const MbCartPoint3D &pnt)
The multiplication of point coordinates by a number.
void CartesianToCylindrical (double &x, double &y, double &z)
Function for transforming coordinates from the Cartesian coordinate system to a cylindrical coordinate system.
void CylindricalToCartesian (double &x, double &y, double &z)
Function for transforming coordinates from a cylindrical coordinate system to a Cartesian coordinate system.
void CylindricalToSpherical (double &x, double &y, double &z)
Function for transforming coordinates from a cylindrical coordinate system to a spherical coordinate system.
void CartesianToSpherical (double &x, double &y, double &z)
Function for transforming coordinates from a Cartesian coordinate system to a spherical coordinate system.
void SphericalToCartesian (double &x, double &y, double &z)
Function for transforming coordinates from a spherical coordinate system to a Cartesian coordinate system.
void SphericalToCylindrical (double &x, double &y, double &z)
Function for transforming coordinates from a spherical coordinate system to a cylindrical coordinate system.
bool c3d::Nonzero (const MbVector3D &vec, double eps)
Check equality of vector to zero with given tolerance.

## Enumeration Type Documentation

 enum MbeLocalSystemType3D
Enumerator:
 ls_CartesianSystem Cartesian coordinate system. ls_CylindricalSystem Cylindrical coordinate system. ls_SphericalSystem Spherical coordinate system.

## Function Documentation

template<class BBox >
 bool c3d::EqualCubes ( const BBox & c1, const BBox & c2, double eps )

Check for equality of boxes with controlled tolerance.

 MbCartPoint3D operator* ( const MbCartPoint3D & pnt, double factor ) ` [inline]`
Parameters:
 [in] pnt - A point. [in] factor - A number.
Returns:
Returns a point multiplied by a number.
 MbCartPoint3D operator/ ( const MbCartPoint3D & pnt, double factor ) ` [inline]`
Parameters:
 [in] pnt - A point. [in] factor - A number.
Returns:
Returns a point divided by a number.
 MbCartPoint3D operator* ( double factor, const MbCartPoint3D & pnt ) ` [inline]`
Parameters:
 [in] factor - A number. [in] pnt - A point.
Returns:
A point with coordinates multiplied by factor.
 void CartesianToCylindrical ( double & x, double & y, double & z )

Function for transforming coordinates from Cartesian coordinate system to a cylindrical coordinate system

Parameters:
 [in,out] x,y,z - Source coordinates.
 void CylindricalToCartesian ( double & x, double & y, double & z )

Function for transforming coordinates from a cylindrical coordinate system to a Cartesian coordinate system

Parameters:
 [in,out] x,y,z - Source coordinates.
 void CylindricalToSpherical ( double & x, double & y, double & z )

Function for transforming coordinates from a cylindrical coordinate system to a spherical coordinate system

Parameters:
 [in,out] x,y,z - Source coordinates.
 void CartesianToSpherical ( double & x, double & y, double & z )

Function for transforming coordinates from a Cartesian coordinate system to a spherical coordinate system

Parameters:
 [in,out] x,y,z - Source coordinates.
 void SphericalToCartesian ( double & x, double & y, double & z )

Function for transforming coordinates from a spherical coordinate system to a Cartesian coordinate system

Parameters:
 [in,out] x,y,z - Source coordinates.
 void SphericalToCylindrical ( double & x, double & y, double & z )

Function for transforming coordinates from a spherical coordinate system to a cylindrical coordinate system

Parameters:
 [in,out] x,y,z - Source coordinates.
 bool c3d::Nonzero ( const MbVector3D & vec, double eps ) ` [inline]`

Check equality of vector to zero with given tolerance. Vector is nonzero if its coordinates are greater than given tolerance.

Parameters:
 [in] vec - A vector. [in] eps - Coordinate tolerance.
Returns:
Returns true if the vector is nonzero.