coal
3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
|
Triangle with 3 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 | |
TriangleTpl () | |
Default constructor. More... | |
TriangleTpl (const TriangleTpl &other) | |
Copy constructor. More... | |
TriangleTpl (IndexType p1, IndexType p2, IndexType p3) | |
Create a triangle with given vertex indices. More... | |
template<typename OtherIndexType > | |
TriangleTpl (const TriangleTpl< OtherIndexType > &other) | |
Copy constructor from another vertex index type. More... | |
TriangleTpl & | operator= (const TriangleTpl &other) |
Copy operator. More... | |
template<typename OtherIndexType > | |
TriangleTpl & | operator= (const TriangleTpl< OtherIndexType > &other) |
Copy operator from another index type. More... | |
template<typename OtherIndexType > | |
TriangleTpl< OtherIndexType > | cast () const |
void | set (IndexType p1, IndexType p2, IndexType p3) |
Set the vertex indices of the triangle. More... | |
IndexType | operator[] (IndexType i) const |
Access the triangle index. More... | |
IndexType & | operator[] (IndexType i) |
bool | operator== (const TriangleTpl &other) const |
bool | operator!= (const TriangleTpl &other) const |
bool | isValid () const |
Static Public Member Functions | |
static size_type | size () |
Protected Attributes | |
IndexType | vids [3] |
indices for each vertex of triangle More... | |
Friends | |
template<typename OtherIndexType > | |
class | TriangleTpl |
Triangle with 3 indices for points.
typedef _IndexType coal::TriangleTpl< _IndexType >::index_type |
typedef _IndexType coal::TriangleTpl< _IndexType >::IndexType |
typedef int coal::TriangleTpl< _IndexType >::size_type |
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Create a triangle with given vertex indices.
|
inline |
Copy constructor from another vertex index type.
|
inline |
|
inline |
|
inline |
|
inline |
Copy operator.
|
inline |
Copy operator from another index type.
|
inline |
|
inline |
|
inline |
Access the triangle index.
|
inline |
Set the vertex indices of the triangle.
|
inlinestatic |
|
protected |
indices for each vertex of triangle