Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
The 3D point class. More...
#include <3d.h>
Public Member Functions | |
OPoint3D () | |
Default constructor. More... | |
OPoint3D (const OPoint3D &pt) | |
Copy constructor. More... | |
OPoint3D (const OCoord3D &coord) | |
Constructor from a 3D coord. More... | |
OPoint3D (double x, double y, double z) | |
Constructs a new object from 3 doubles. More... | |
OPoint3D (double v[]) | |
Constructs a new object from 3 doubles. More... | |
virtual | ~OPoint3D () |
Destructor. More... | |
virtual void | set (double x, double y, double z) |
virtual void | setFromOGL (double x, double y, double z) |
virtual void | setFromOGL (float x, float y, float z) |
virtual void | setFromOGL (float coords[3]) |
virtual void | setFromOGL (double coords[3]) |
virtual void | getToOGL (double &x, double &y, double &z) |
virtual void | getToOGL (double coords[3]) |
double | distFrom (const OPoint3D &pt) const |
Computes the distance from this point to another. More... | |
double | dist2DFrom (const OPoint3D &pt) const |
Computes the distance from this point to another in 2D plan. More... | |
bool | isEqual (const OPoint3D &oPoint) const |
Compatibility alias for operator==. More... | |
OPoint3D () | |
Default constructor. More... | |
OPoint3D (const OPoint3D &pt) | |
Copy constructor. More... | |
OPoint3D (const OCoord3D &coord) | |
Constructor from a 3D coord. More... | |
OPoint3D (double x, double y, double z) | |
OPoint3D (double v[]) | |
virtual | ~OPoint3D () |
Destructor. More... | |
virtual void | set (double x, double y, double z) |
virtual void | setFromOGL (double x, double y, double z) |
virtual void | setFromOGL (float x, float y, float z) |
virtual void | setFromOGL (float coords[3]) |
virtual void | setFromOGL (double coords[3]) |
virtual void | getToOGL (double &x, double &y, double &z) |
virtual void | getToOGL (double coords[3]) |
double | distFrom (const OPoint3D &pt) const |
double | dist2DFrom (const OPoint3D &pt) const |
bool | isEqual (const OPoint3D &oPoint) const |
Compatibility alias for operator==. More... | |
Public Member Functions inherited from OCoord3D | |
OCoord3D () | |
Default constructor. More... | |
OCoord3D (const OCoord3D &coord) | |
Copy constructor. More... | |
OCoord3D (double x, double y, double z) | |
Constructor with 3D point coordinates. More... | |
virtual | ~OCoord3D () |
Destructor. More... | |
OCoord3D & | operator= (const OCoord3D &coord) |
operator= More... | |
bool | operator== (const OCoord3D &coord) const |
operator== More... | |
bool | operator!= (const OCoord3D &coord) const |
operator!= More... | |
void | setCoords (double x, double y, double z) |
Sets the coordinates as an array of double. More... | |
void | setCoords (double coords[3]) |
Sets the coordinates as an array of double. More... | |
void | getCoords (double coords[3]) |
Gets the coordinates as an array of double. More... | |
double * | getCoords () |
Gets the coordinates as an array of double. More... | |
operator const double * () const | |
operator double * () | |
OCoord3D () | |
Default constructor. More... | |
OCoord3D (const OCoord3D &coord) | |
Copy constructor. More... | |
OCoord3D (double x, double y, double z) | |
Constructor with 3D point coordinates. More... | |
virtual | ~OCoord3D () |
Destructor. More... | |
OCoord3D & | operator= (const OCoord3D &coord) |
operator= More... | |
bool | operator== (const OCoord3D &coord) const |
operator== More... | |
bool | operator!= (const OCoord3D &coord) const |
operator!= More... | |
void | setCoords (double x, double y, double z) |
void | setCoords (double coords[3]) |
void | getCoords (double coords[3]) |
double * | getCoords () |
operator const double * () const | |
operator double * () | |
Static Public Member Functions | |
static TabPoint3D | checkPointsMaxDistance (const TabPoint3D &points, const double &distanceMax) |
static TabPoint3D | checkPointsMaxDistance (const OPoint3D &point1, const OPoint3D &point2, const double &distanceMax) |
Same as previous function taking two points instead of a tab of points. More... | |
static TabPoint3D | checkPointsMaxDistance (const TabPoint3D &points, const double &distanceMax) |
static TabPoint3D | checkPointsMaxDistance (const OPoint3D &point1, const OPoint3D &point2, const double &distanceMax) |
Same as previous function taking two points instead of a tab of points. More... | |
Additional Inherited Members | |
Public Attributes inherited from OCoord3D | |
union { | |
struct { | |
double _x | |
x coordinate of OCoord3D More... | |
double _y | |
y coordinate of OCoord3D More... | |
double _z | |
z coordinate of OCoord3D More... | |
} | |
double _value [3] | |
}; | |
union { | |
struct { | |
double _x | |
x coordinate of OCoord3D More... | |
double _y | |
y coordinate of OCoord3D More... | |
double _z | |
z coordinate of OCoord3D More... | |
} | |
double _value [3] | |
}; | |
OPoint3D::OPoint3D | ( | ) |
OPoint3D::OPoint3D | ( | const OPoint3D & | pt | ) |
OPoint3D::OPoint3D | ( | const OCoord3D & | coord | ) |
OPoint3D::OPoint3D | ( | double | x, |
double | y, | ||
double | z | ||
) |
OPoint3D::OPoint3D | ( | double | v[] | ) |
|
virtual |
OPoint3D::OPoint3D | ( | ) |
Default constructor.
OPoint3D::OPoint3D | ( | const OPoint3D & | pt | ) |
Copy constructor.
pt | The object to be copied. |
OPoint3D::OPoint3D | ( | const OCoord3D & | coord | ) |
Constructor from a 3D coord.
coord | The object to be copied. |
OPoint3D::OPoint3D | ( | double | x, |
double | y, | ||
double | z | ||
) |
OPoint3D::OPoint3D | ( | double | v[] | ) |
|
virtual |
Destructor.
|
static |
Utility method assuring that two consecutive points are spaced within a maximal length adding add new points if necessary
points | The array of points to check. |
distanceMax | Maximal distance between two points. |
|
static |
Utility method assuring that two consecutive points are spaced within a maximal length adding add new points if necessary
points | The array of points to check. |
distanceMax | Maximal distance between two points. |
Definition at line 424 of file 3d.cpp.
|
static |
Same as previous function taking two points instead of a tab of points.
|
static |
double OPoint3D::dist2DFrom | ( | const OPoint3D & | pt | ) | const |
double OPoint3D::dist2DFrom | ( | const OPoint3D & | pt | ) | const |
double OPoint3D::distFrom | ( | const OPoint3D & | pt | ) | const |
double OPoint3D::distFrom | ( | const OPoint3D & | pt | ) | const |
|
virtual |
Compatibility with OGL. Change from Tympan frame to OGL.
x | X coordinate. |
y | Y coordinate. |
z | Z coordinate. |
|
virtual |
|
virtual |
Compatibility with OGL. Change from Tympan frame to OGL.
coords | 3D coordinates (double) |
|
virtual |
|
inline |
|
inline |
|
virtual |
Set coordinates to the object.
x | X coordinate. |
y | Y coordinate. |
z | Z coordinate. |
|
virtual |
|
virtual |
Compatibility with OGL. Change OGL frame to Tympan.
x | X coordinate. |
y | Y coordinate. |
z | Z coordinate. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Compatibility with OGL. Change OGL frame to Tympan.
coords | 3D coordinates (float) |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |