C3D Toolkit
Kernel - 117950, Vision - 2.7.5.29
|
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 | MbOrientedBox |
An arbitrarily oriented bounding box (OBB) that includes some geometric object within box boundaries. More... | |
class | MbPlacement3D |
Local coordinate system in three dimensional space. More... | |
class | MbRect1D |
One-dimensional box. More... | |
class | MbRect2D |
A two-dimensional box. More... | |
class | MbRect3D |
Three-dimensional box. 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. More... | |
MbCartPoint3D | operator* (const MbCartPoint3D &pnt, double factor) |
The multiplication of a point by a number. More... | |
MbCartPoint3D | operator/ (const MbCartPoint3D &pnt, double factor) |
The division of a point by a number. More... | |
MbCartPoint3D | operator* (double factor, const MbCartPoint3D &pnt) |
The multiplication of point coordinates by a number. More... | |
bool | MbPlacement3D::LineIntersectionPoint (const MbCartPoint3D &origin, const MbVector3D &direction, MbCartPoint3D &p, double &d, double eps=ANGLE_EPSILON) const |
Find the nearest point of intersection with line. More... | |
void | CartesianToCylindrical (double &x, double &y, double &z) |
Function for transforming coordinates from the Cartesian coordinate system to a cylindrical coordinate system. More... | |
void | CylindricalToCartesian (double &x, double &y, double &z) |
Function for transforming coordinates from a cylindrical coordinate system to a Cartesian coordinate system. More... | |
void | CylindricalToSpherical (double &x, double &y, double &z) |
Function for transforming coordinates from a cylindrical coordinate system to a spherical coordinate system. More... | |
void | CartesianToSpherical (double &x, double &y, double &z) |
Function for transforming coordinates from a Cartesian coordinate system to a spherical coordinate system. More... | |
void | SphericalToCartesian (double &x, double &y, double &z) |
Function for transforming coordinates from a spherical coordinate system to a Cartesian coordinate system. More... | |
void | SphericalToCylindrical (double &x, double &y, double &z) |
Function for transforming coordinates from a spherical coordinate system to a cylindrical coordinate system. More... | |
bool | c3d::Nonzero (const MbVector3D &vec, double eps) |
Check equality of vector to zero with given tolerance. More... | |
enum MbeLocalSystemType3D |
bool c3d::EqualCubes | ( | const BBox & | c1, |
const BBox & | c2, | ||
double | eps | ||
) |
Check for equality of boxes with controlled tolerance.
Check for equality of boxes with controlled tolerance.
|
inline |
The multiplication of a point by a number.
[in] | pnt | - A point. |
[in] | factor | - A number. |
|
inline |
The division of a point by a number.
[in] | pnt | - A point. |
[in] | factor | - A number. |
|
inline |
The multiplication of point coordinates by a number.
[in] | factor | - A number. |
[in] | pnt | - A point. |
bool MbPlacement3D::LineIntersectionPoint | ( | const MbCartPoint3D & | origin, |
const MbVector3D & | direction, | ||
MbCartPoint3D & | p, | ||
double & | d, | ||
double | eps = ANGLE_EPSILON |
||
) | const |
Find the nearest point of intersection with line.
Find the nearest point of intersection with a line. The line is set by its origin and direction: p(d) = origin + d * direction.
[in] | origin | - The origin of the input line. |
[in] | direction | - The direction of the input line. |
[out] | p | - The found intersection point. |
[out] | d | - A parameter of the intersection point along the line. |
[in] | eps | - A tolerance determining the situation when the line is parallel to the plane. |
void CartesianToCylindrical | ( | double & | x, |
double & | y, | ||
double & | z | ||
) |
Function for transforming coordinates from the Cartesian coordinate system to a cylindrical coordinate system.
Function for transforming coordinates from Cartesian coordinate system to a cylindrical coordinate system
[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.
Function for transforming coordinates from a cylindrical coordinate system to a Cartesian coordinate system
[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.
Function for transforming coordinates from a cylindrical coordinate system to a spherical coordinate system
[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.
Function for transforming coordinates from a Cartesian coordinate system to a spherical coordinate system
[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.
Function for transforming coordinates from a spherical coordinate system to a Cartesian coordinate system
[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.
Function for transforming coordinates from a spherical coordinate system to a cylindrical coordinate system
[in,out] | x,y,z | - Source coordinates. |
|
inline |
Check equality of vector to zero with given tolerance.
Check equality of vector to zero with given tolerance. Vector is nonzero if its coordinates are greater than given tolerance.
[in] | vec | - A vector. |
[in] | eps | - Coordinate tolerance. |