coal 3.0.2
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
coal::Triangle Class Reference

Triangle with 3 indices for points. More...

#include <coal/data_types.h>

Public Types

typedef std::size_t index_type
typedef int size_type

Public Member Functions

 Triangle ()
 Default constructor.
 Triangle (index_type p1, index_type p2, index_type p3)
 Create a triangle with given vertex indices.
void set (index_type p1, index_type p2, index_type p3)
 Set the vertex indices of the triangle.
index_type operator[] (index_type i) const
 Access the triangle index.
index_typeoperator[] (index_type i)
bool operator== (const Triangle &other) const
bool operator!= (const Triangle &other) const
bool isValid () const

Static Public Member Functions

static size_type size ()

Detailed Description

Triangle with 3 indices for points.

Member Typedef Documentation

◆ index_type

typedef std::size_t coal::Triangle::index_type

◆ size_type

Constructor & Destructor Documentation

◆ Triangle() [1/2]

coal::Triangle::Triangle()
inline

Default constructor.

◆ Triangle() [2/2]

coal::Triangle::Triangle(index_typep1,
index_typep2,
index_typep3 )
inline

Create a triangle with given vertex indices.

Member Function Documentation

◆ isValid()

bool coal::Triangle::isValid()const
inline

◆ operator!=()

bool coal::Triangle::operator!=(const Triangle &other)const
inline

◆ operator==()

bool coal::Triangle::operator==(const Triangle &other)const
inline

◆ operator[]() [1/2]

index_type & coal::Triangle::operator[](index_typei)
inline

◆ operator[]() [2/2]

index_type coal::Triangle::operator[](index_typei)const
inline

Access the triangle index.

◆ set()

void coal::Triangle::set(index_typep1,
index_typep2,
index_typep3 )
inline

Set the vertex indices of the triangle.

◆ size()

size_type coal::Triangle::size()
inlinestatic

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