Public Member Functions | List of all members
hpp::fcl::Triangle Class Reference

Triangle with 3 indices for points. More...

#include <hpp/fcl/data_types.h>

Public Member Functions

 Triangle ()
 Default constructor. More...
 
 Triangle (std::size_t p1, std::size_t p2, std::size_t p3)
 Create a triangle with given vertex indices. More...
 
void set (std::size_t p1, std::size_t p2, std::size_t p3)
 Set the vertex indices of the triangle. More...
 
std::size_t operator[] (int i) const
 the triangle index More...
 
std::size_t & operator[] (int i)
 

Detailed Description

Triangle with 3 indices for points.

Constructor & Destructor Documentation

hpp::fcl::Triangle::Triangle ( )
inline

Default constructor.

hpp::fcl::Triangle::Triangle ( std::size_t  p1,
std::size_t  p2,
std::size_t  p3 
)
inline

Create a triangle with given vertex indices.

Member Function Documentation

std::size_t hpp::fcl::Triangle::operator[] ( int  i) const
inline

the triangle index

std::size_t& hpp::fcl::Triangle::operator[] ( int  i)
inline
void hpp::fcl::Triangle::set ( std::size_t  p1,
std::size_t  p2,
std::size_t  p3 
)
inline

Set the vertex indices of the triangle.