Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes
Tri Class Reference
Inheritance diagram for Tri:
Inheritance graph
[legend]
Collaboration diagram for Tri:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Tri (int a, int b, int c)
 ~Tri ()
int & neib (int a, int b)
const int & operator[] (int i) const
int & operator[] (int i)

Public Attributes

int3 n
int id
int vmax
btScalar rise
int x
int y
int z

Detailed Description

Definition at line 342 of file btConvexHull.cpp.


Constructor & Destructor Documentation

Tri::Tri ( int  a,
int  b,
int  c 
) [inline]

Definition at line 349 of file btConvexHull.cpp.

                             :int3(a,b,c),n(-1,-1,-1)
       {
              vmax=-1;
              rise = btScalar(0.0);
       }
Tri::~Tri ( ) [inline]

Definition at line 354 of file btConvexHull.cpp.

       {
       }

Here is the caller graph for this function:


Member Function Documentation

int & Tri::neib ( int  a,
int  b 
)

Definition at line 361 of file btConvexHull.cpp.

{
       static int er=-1;
       int i;
       for(i=0;i<3;i++) 
       {
              int i1=(i+1)%3;
              int i2=(i+2)%3;
              if((*this)[i]==a && (*this)[i1]==b) return n[i2];
              if((*this)[i]==b && (*this)[i1]==a) return n[i2];
       }
       btAssert(0);
       return er;
}

Here is the caller graph for this function:

const int& int3::operator[] ( int  i) const [inline, inherited]

Definition at line 42 of file btConvexHull.cpp.

{return (&x)[i];}
int& int3::operator[] ( int  i) [inline, inherited]

Definition at line 43 of file btConvexHull.cpp.

{return (&x)[i];}

Member Data Documentation

int Tri::id

Definition at line 346 of file btConvexHull.cpp.

Definition at line 345 of file btConvexHull.cpp.

Definition at line 348 of file btConvexHull.cpp.

int Tri::vmax

Definition at line 347 of file btConvexHull.cpp.

int int3::x [inherited]

Definition at line 39 of file btConvexHull.cpp.

int int3::y [inherited]

Definition at line 39 of file btConvexHull.cpp.

int int3::z [inherited]

Definition at line 39 of file btConvexHull.cpp.


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