C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Axis. More...
#include <mesh_float_point3d.h>
Public Member Functions | |
MbFloatAxis3D () | |
Empty constructor. The axis is in the origin of global coordinates and coincides with the third axis of global coordinates. | |
MbFloatAxis3D (const MbFloatPoint3D &initOrigin, const MbFloatVector3D &initAxisZ) | |
Constructor by a point and a vector. | |
MbFloatAxis3D (const MbCartPoint3D &initOrigin, const MbVector3D &initAxisZ) | |
Constructor by a point and a vector. | |
MbFloatAxis3D (const MbFloatPoint3D &initOrigin, const MbFloatPoint3D &initPoint) | |
Constructor by two points. | |
MbFloatAxis3D (const MbFloatAxis3D &initAxis) | |
Constructor by another axis. | |
MbFloatAxis3D (const MbAxis3D &initAxis) | |
Constructor by another axis. | |
~MbFloatAxis3D () | |
Destructor. | |
void | Init (const MbFloatAxis3D &initAxis) |
The initialization by another axis. | |
void | Init (const MbFloatPoint3D &initOrigin, const MbFloatVector3D &initAxisZ) |
The initialization by a point and a vector. | |
void | Init (const MbCartPoint3D &initOrigin, const MbVector3D &initAxisZ) |
The initialization by a point and a vector. | |
void | Init (const MbFloatPoint3D &initOrigin, const MbFloatPoint3D &initPoint) |
The initialization by two points. | |
bool | IsSame (const MbFloatAxis3D &other, double accuracy) const |
Are the objects equal? More... | |
void | PointOn (const float &t, MbFloatPoint3D &p) const |
Get the space point by a parameter on axis. | |
Functions of a three-dimensional object | |
void | Transform (const MbMatrix3D &) |
Transform according to the matrix. | |
void | Move (const MbVector3D &) |
Translate along a vector. | |
void | Rotate (const MbAxis3D &, double angle) |
Rotate about an axis by an angle. | |
MbFloatAxis3D & | Duplicate () const |
Create a copy of the element. | |
float | DistanceToPoint (const MbFloatPoint3D &) const |
Calculate distance to point. | |
float | DistanceToSegment (const MbFloatPoint3D &p1, const MbFloatPoint3D &p2) const |
Calculate distance to segment. | |
bool | PointProjection (const MbFloatPoint3D &pnt, float &tRes) const |
Calculate point projection to the exis. | |
Functions for access to fields. | |
const MbFloatPoint3D & | GetOrigin () const |
Get origin of axis. | |
const MbFloatVector3D & | GetAxisZ () const |
Get vector of axis. | |
MbFloatPoint3D & | SetOrigin () |
Change origin of axis. | |
MbFloatVector3D & | SetAxisZ () |
Change vector of axis. | |
MbFloatAxis3D & | operator= (const MbFloatAxis3D &init) |
Assignment of values. | |
Axis.
Axis represents the vector attached to the fixed point.
|
inline |
Are the objects equal?
The objects are equal if their data are equal with a given accuracy.
[in] | other | - The object to compare. |
[in] | accuracy | - The accuracy to compare. |