Auxiliary struct holding any quadrilateral, represented by foour points.
Definition at line 53 of file CGeneralizedCylinder.h.
#include <mrpt/opengl/CGeneralizedCylinder.h>
Public Member Functions | |
void | getAsPolygonUnsafe (mrpt::math::TPolygon3D &vec) const |
Given a polygon with 4 already positions allocated, this method fills it with the quadrilateral points. | |
TQuadrilateral (const TPoint3D &p1, const TPoint3D &p2, const TPoint3D &p3, const TPoint3D &p4) | |
Constructor from 4 points. | |
template<class T > | |
TQuadrilateral (const T(&p)[4]) | |
Construction from any array of four compatible objects. | |
TQuadrilateral () | |
Empty constructor. | |
~TQuadrilateral () | |
Destructor. | |
Public Attributes | |
TPoint3D | points [4] |
Quadrilateral`'s points. | |
double | normal [3] |
Normal vector. | |
Private Member Functions | |
void | calculateNormal () |
Automatically compute a vector normal to this quadrilateral. |
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral | ( | const TPoint3D & | p1, |
const TPoint3D & | p2, | ||
const TPoint3D & | p3, | ||
const TPoint3D & | p4 | ||
) | [inline] |
Constructor from 4 points.
Definition at line 81 of file CGeneralizedCylinder.h.
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral | ( | const T(&) | p[4] | ) | [inline] |
Construction from any array of four compatible objects.
Definition at line 91 of file CGeneralizedCylinder.h.
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral | ( | ) | [inline] |
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::~TQuadrilateral | ( | ) | [inline] |
Destructor.
Definition at line 102 of file CGeneralizedCylinder.h.
void mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::calculateNormal | ( | ) | [private] |
Automatically compute a vector normal to this quadrilateral.
void mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::getAsPolygonUnsafe | ( | mrpt::math::TPolygon3D & | vec | ) | const [inline] |
Given a polygon with 4 already positions allocated, this method fills it with the quadrilateral points.
Definition at line 72 of file CGeneralizedCylinder.h.
Normal vector.
Definition at line 67 of file CGeneralizedCylinder.h.
Quadrilateral`'s points.
Definition at line 63 of file CGeneralizedCylinder.h.
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011 |