coal  3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
coal::QuadrilateralTpl< _IndexType > Struct Template Reference

Quadrilateral with 4 indices for points. More...

#include <coal/data_types.h>

Public Types

typedef _IndexType index_type
 
typedef _IndexType IndexType
 
typedef int size_type
 

Public Member Functions

 QuadrilateralTpl ()
 Default constructor. More...
 
 QuadrilateralTpl (const QuadrilateralTpl &other)
 Copy constructor. More...
 
template<typename OtherIndexType >
 QuadrilateralTpl (const QuadrilateralTpl< OtherIndexType > &other)
 Copy constructor from another vertex index type. More...
 
QuadrilateralTploperator= (const QuadrilateralTpl &other)
 Copy operator. More...
 
template<typename OtherIndexType >
QuadrilateralTploperator= (const QuadrilateralTpl< OtherIndexType > &other)
 Copy operator from another index type. More...
 
template<typename OtherIndexType >
QuadrilateralTpl< OtherIndexType > cast () const
 
 QuadrilateralTpl (IndexType p0, IndexType p1, IndexType p2, IndexType p3)
 
void set (IndexType p0, IndexType p1, IndexType p2, IndexType p3)
 Set the vertex indices of the quadrilateral. More...
 
IndexType operator[] (IndexType i) const
 @access the quadrilateral index More...
 
IndexTypeoperator[] (IndexType i)
 
bool operator== (const QuadrilateralTpl &other) const
 
bool operator!= (const QuadrilateralTpl &other) const
 

Static Public Member Functions

static size_type size ()
 

Protected Attributes

IndexType vids [4]
 

Detailed Description

template<typename _IndexType>
struct coal::QuadrilateralTpl< _IndexType >

Quadrilateral with 4 indices for points.

Member Typedef Documentation

◆ index_type

template<typename _IndexType >
typedef _IndexType coal::QuadrilateralTpl< _IndexType >::index_type

◆ IndexType

template<typename _IndexType >
typedef _IndexType coal::QuadrilateralTpl< _IndexType >::IndexType

◆ size_type

template<typename _IndexType >
typedef int coal::QuadrilateralTpl< _IndexType >::size_type

Constructor & Destructor Documentation

◆ QuadrilateralTpl() [1/4]

template<typename _IndexType >
coal::QuadrilateralTpl< _IndexType >::QuadrilateralTpl ( )
inline

Default constructor.

◆ QuadrilateralTpl() [2/4]

template<typename _IndexType >
coal::QuadrilateralTpl< _IndexType >::QuadrilateralTpl ( const QuadrilateralTpl< _IndexType > &  other)
inline

Copy constructor.

◆ QuadrilateralTpl() [3/4]

template<typename _IndexType >
template<typename OtherIndexType >
coal::QuadrilateralTpl< _IndexType >::QuadrilateralTpl ( const QuadrilateralTpl< OtherIndexType > &  other)
inline

Copy constructor from another vertex index type.

◆ QuadrilateralTpl() [4/4]

template<typename _IndexType >
coal::QuadrilateralTpl< _IndexType >::QuadrilateralTpl ( IndexType  p0,
IndexType  p1,
IndexType  p2,
IndexType  p3 
)
inline

Member Function Documentation

◆ cast()

template<typename _IndexType >
template<typename OtherIndexType >
QuadrilateralTpl<OtherIndexType> coal::QuadrilateralTpl< _IndexType >::cast ( ) const
inline

◆ operator!=()

template<typename _IndexType >
bool coal::QuadrilateralTpl< _IndexType >::operator!= ( const QuadrilateralTpl< _IndexType > &  other) const
inline

◆ operator=() [1/2]

template<typename _IndexType >
QuadrilateralTpl& coal::QuadrilateralTpl< _IndexType >::operator= ( const QuadrilateralTpl< _IndexType > &  other)
inline

Copy operator.

◆ operator=() [2/2]

template<typename _IndexType >
template<typename OtherIndexType >
QuadrilateralTpl& coal::QuadrilateralTpl< _IndexType >::operator= ( const QuadrilateralTpl< OtherIndexType > &  other)
inline

Copy operator from another index type.

◆ operator==()

template<typename _IndexType >
bool coal::QuadrilateralTpl< _IndexType >::operator== ( const QuadrilateralTpl< _IndexType > &  other) const
inline

◆ operator[]() [1/2]

template<typename _IndexType >
IndexType& coal::QuadrilateralTpl< _IndexType >::operator[] ( IndexType  i)
inline

◆ operator[]() [2/2]

template<typename _IndexType >
IndexType coal::QuadrilateralTpl< _IndexType >::operator[] ( IndexType  i) const
inline

@access the quadrilateral index

◆ set()

template<typename _IndexType >
void coal::QuadrilateralTpl< _IndexType >::set ( IndexType  p0,
IndexType  p1,
IndexType  p2,
IndexType  p3 
)
inline

Set the vertex indices of the quadrilateral.

◆ size()

template<typename _IndexType >
static size_type coal::QuadrilateralTpl< _IndexType >::size ( )
inlinestatic

Member Data Documentation

◆ vids

template<typename _IndexType >
IndexType coal::QuadrilateralTpl< _IndexType >::vids[4]
protected

The documentation for this struct was generated from the following file: