Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes | Private Member Functions
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral Struct Reference

Detailed Description

Auxiliary struct holding any quadrilateral, represented by foour points.

Definition at line 38 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. More...
 
 TQuadrilateral (const mrpt::math::TPoint3D &p1, const mrpt::math::TPoint3D &p2, const mrpt::math::TPoint3D &p3, const mrpt::math::TPoint3D &p4)
 Constructor from 4 points. More...
 
template<class T >
 TQuadrilateral (const T(&p)[4])
 Construction from any array of four compatible objects. More...
 
 TQuadrilateral ()
 Empty constructor. More...
 
 ~TQuadrilateral ()
 Destructor. More...
 

Public Attributes

mrpt::math::TPoint3D points [4]
 Quadrilateral`'s points. More...
 
double normal [3]
 Normal vector. More...
 

Private Member Functions

void calculateNormal ()
 Automatically compute a vector normal to this quadrilateral. More...
 

Constructor & Destructor Documentation

◆ TQuadrilateral() [1/3]

mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral ( const mrpt::math::TPoint3D p1,
const mrpt::math::TPoint3D p2,
const mrpt::math::TPoint3D p3,
const mrpt::math::TPoint3D p4 
)
inline

Constructor from 4 points.

Definition at line 70 of file CGeneralizedCylinder.h.

References calculateNormal().

◆ TQuadrilateral() [2/3]

template<class T >
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral ( const T(&)  p[4])
inline

Construction from any array of four compatible objects.

Definition at line 84 of file CGeneralizedCylinder.h.

References calculateNormal().

◆ TQuadrilateral() [3/3]

mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral ( )
inline

Empty constructor.

Initializes to garbage.

Definition at line 92 of file CGeneralizedCylinder.h.

◆ ~TQuadrilateral()

mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::~TQuadrilateral ( )
inline

Destructor.

Definition at line 96 of file CGeneralizedCylinder.h.

Member Function Documentation

◆ calculateNormal()

void mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::calculateNormal ( )
private

Automatically compute a vector normal to this quadrilateral.

Referenced by TQuadrilateral().

◆ getAsPolygonUnsafe()

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.

See also
mrpt::math::TPolygon3D

Definition at line 60 of file CGeneralizedCylinder.h.

Member Data Documentation

◆ normal

double mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::normal[3]

Normal vector.

Definition at line 54 of file CGeneralizedCylinder.h.

◆ points

mrpt::math::TPoint3D mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::points[4]

Quadrilateral`'s points.

Definition at line 50 of file CGeneralizedCylinder.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019