CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csTriangle Struct Reference
[Geometry utilities]

A triangle. More...

#include <csgeom/tri.h>

Inheritance diagram for csTriangle:

csTriangleMinMax List of all members.

Public Member Functions

 csTriangle (const csTriangle &t)
 Copy constructor.
 csTriangle (int _a, int _b, int _c)
 Convenience constructor, builds a triangle with initializers.
 csTriangle ()
 Empty default constructor.
csTriangleoperator= (const csTriangle &t)
 Assignment.
void Set (int _a, int _b, int _c)
 Set the values.

Public Attributes

int a
int b
int c

Detailed Description

A triangle.

Note that this structure is only valid if used in combination with a vertex or edge table. 'a', 'b', and 'c' are then indices in that table (either vertices or edges).

Definition at line 35 of file tri.h.


Constructor & Destructor Documentation

csTriangle::csTriangle  )  [inline]
 

Empty default constructor.

Definition at line 40 of file tri.h.

csTriangle::csTriangle int  _a,
int  _b,
int  _c
[inline]
 

Convenience constructor, builds a triangle with initializers.

Definition at line 43 of file tri.h.

csTriangle::csTriangle const csTriangle t  )  [inline]
 

Copy constructor.

Definition at line 46 of file tri.h.

References a, b, and c.


Member Function Documentation

csTriangle& csTriangle::operator= const csTriangle t  )  [inline]
 

Assignment.

Definition at line 54 of file tri.h.

References a, b, and c.

void csTriangle::Set int  _a,
int  _b,
int  _c
[inline]
 

Set the values.

Definition at line 63 of file tri.h.

References a, b, and c.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4