Triangle with 3 indices for points. More...
#include <hpp/fcl/data_types.h>
Public Member Functions | |
Triangle () | |
Default constructor. | |
Triangle (std::size_t p1, std::size_t p2, std::size_t p3) | |
Create a triangle with given vertex indices. | |
void | set (std::size_t p1, std::size_t p2, std::size_t p3) |
Set the vertex indices of the triangle. | |
std::size_t | operator[] (int i) const |
the triangle index | |
std::size_t & | operator[] (int i) |
Triangle with 3 indices for points.
fcl::Triangle::Triangle | ( | ) | [inline] |
Default constructor.
fcl::Triangle::Triangle | ( | std::size_t | p1, |
std::size_t | p2, | ||
std::size_t | p3 | ||
) | [inline] |
Create a triangle with given vertex indices.
std::size_t fcl::Triangle::operator[] | ( | int | i | ) | const [inline] |
the triangle index
std::size_t& fcl::Triangle::operator[] | ( | int | i | ) | [inline] |
void fcl::Triangle::set | ( | std::size_t | p1, |
std::size_t | p2, | ||
std::size_t | p3 | ||
) | [inline] |
Set the vertex indices of the triangle.