Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
hpp::fcl::Triangle Class Reference

Triangle with 3 indices for points. More...

#include <data_types.h>

Public Types

typedef std::size_t index_type
 
typedef int size_type
 

Public Member Functions

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

Static Public Member Functions

static size_type size ()
 

Private Attributes

index_type vids [3]
 indices for each vertex of triangle More...
 

Detailed Description

Triangle with 3 indices for points.

Definition at line 96 of file data_types.h.

Member Typedef Documentation

◆ index_type

typedef std::size_t hpp::fcl::Triangle::index_type

Definition at line 98 of file data_types.h.

◆ size_type

Definition at line 99 of file data_types.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

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

Default constructor.

Definition at line 102 of file data_types.h.

◆ Triangle() [2/2]

hpp::fcl::Triangle::Triangle ( index_type  p1,
index_type  p2,
index_type  p3 
)
inline

Create a triangle with given vertex indices.

Definition at line 105 of file data_types.h.

Member Function Documentation

◆ operator!=()

bool hpp::fcl::Triangle::operator!= ( const Triangle other) const
inline

Definition at line 126 of file data_types.h.

◆ operator==()

bool hpp::fcl::Triangle::operator== ( const Triangle other) const
inline

Definition at line 121 of file data_types.h.

◆ operator[]() [1/2]

index_type hpp::fcl::Triangle::operator[] ( index_type  i) const
inline

Access the triangle index.

Definition at line 115 of file data_types.h.

◆ operator[]() [2/2]

index_type& hpp::fcl::Triangle::operator[] ( index_type  i)
inline

Definition at line 117 of file data_types.h.

◆ set()

void hpp::fcl::Triangle::set ( index_type  p1,
index_type  p2,
index_type  p3 
)
inline

Set the vertex indices of the triangle.

Definition at line 108 of file data_types.h.

◆ size()

static size_type hpp::fcl::Triangle::size ( )
inlinestatic

Definition at line 119 of file data_types.h.

Member Data Documentation

◆ vids

index_type hpp::fcl::Triangle::vids[3]
private

indices for each vertex of triangle

Definition at line 130 of file data_types.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03