Represents a 3D point with floating point coordinates. More...
#include <eVision/Easy3D/E3DPoint.h>
Public Member Functions | |
| E3DPoint () | |
| Constructs a default E3DPoint object. | |
| E3DPoint (float x, float y, float z) | |
| Constructs a default E3DPoint object. | |
| bool | operator== (const eVision::Easy3D::E3DPoint &point) const |
| Checks if two E3DPoint are strictly equal. | |
| bool | operator!= (const eVision::Easy3D::E3DPoint &point) const |
| Checks if two E3DPoint are strictly different. | |
| float | SquareDistanceTo (const eVision::Easy3D::E3DPoint &point) const |
| Returns the euclidean squared distance to another E3DPoint. | |
| float | DistanceTo (const eVision::Easy3D::E3DPoint &point) const |
| Returns the euclidean distance to another E3DPoint. | |
| float | DistanceToSegment (const eVision::Easy3D::E3DPoint &from, const eVision::Easy3D::E3DPoint &to) const |
| Returns the euclidean distance between the E3DPoint and a segment represented by 2 other E3DPoint. | |
| void | Save (const std::string &fileName) |
| Saves the E3DPoint. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the E3DPoint. | |
| void | Load (const std::string &fileName) |
| Loads the E3DPoint. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the E3DPoint. | |
Public Attributes | |
| float | X |
| X coordinate of the point. | |
| float | Y |
| Y coordinate of the point. | |
| float | Z |
| Z coordinate of the point. | |
Represents a 3D point with floating point coordinates.
License(s): Easy3D
| eVision::Easy3D::E3DPoint::E3DPoint | ( | ) |
Constructs a default E3DPoint object.
If the default constructor is used, the point is initialized to (0, 0, 0).
| eVision::Easy3D::E3DPoint::E3DPoint | ( | float | x, |
| float | y, | ||
| float | z ) |
Constructs a default E3DPoint object.
| x | X coordinate of the point. |
| y | Y coordinate of the point. |
| z | Z coordinate of the point. |
If the default constructor is used, the point is initialized to (0, 0, 0).
| float eVision::Easy3D::E3DPoint::DistanceTo | ( | const eVision::Easy3D::E3DPoint & | point | ) | const |
Returns the euclidean distance to another E3DPoint.
| point | The other point. |
| float eVision::Easy3D::E3DPoint::DistanceToSegment | ( | const eVision::Easy3D::E3DPoint & | from, |
| const eVision::Easy3D::E3DPoint & | to ) const |
| void eVision::Easy3D::E3DPoint::Load | ( | const std::string & | fileName | ) |
Loads the E3DPoint.
| fileName | Path to the file. |
| void eVision::Easy3D::E3DPoint::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the E3DPoint.
| serializer | Serializer. Must be in read mode. |
| bool eVision::Easy3D::E3DPoint::operator!= | ( | const eVision::Easy3D::E3DPoint & | point | ) | const |
Checks if two E3DPoint are strictly different.
| point | The other point. |
| bool eVision::Easy3D::E3DPoint::operator== | ( | const eVision::Easy3D::E3DPoint & | point | ) | const |
Checks if two E3DPoint are strictly equal.
| point | The other point. |
| void eVision::Easy3D::E3DPoint::Save | ( | const std::string & | fileName | ) |
Saves the E3DPoint.
| fileName | Path to the file. |
| void eVision::Easy3D::E3DPoint::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the E3DPoint.
| serializer | Serializer. Must be in write mode. |
| float eVision::Easy3D::E3DPoint::SquareDistanceTo | ( | const eVision::Easy3D::E3DPoint & | point | ) | const |
Returns the euclidean squared distance to another E3DPoint.
| point | The other point. |
| float eVision::Easy3D::E3DPoint::X |
X coordinate of the point.
| float eVision::Easy3D::E3DPoint::Y |
Y coordinate of the point.
| float eVision::Easy3D::E3DPoint::Z |
Z coordinate of the point.