CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csTriangle Struct Reference
[Geometry utilities]

A triangle. More...

#include <tri.h>

List of all members.

Public Methods

 csTriangle ()
 Empty default constructor.

 csTriangle (int _a, int _b, int _c)
 Convenience constructor, builds a triangle with initializers.

 csTriangle (const csTriangle &t)
 Copy constructor.

csTriangle & operator= (const csTriangle &t)
 Assignment.

void Set (int _a, int _b, int _c)
 Set the values.


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 33 of file tri.h.


Constructor & Destructor Documentation

csTriangle::csTriangle   [inline]
 

Empty default constructor.

Definition at line 38 of file tri.h.

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

Convenience constructor, builds a triangle with initializers.

Definition at line 41 of file tri.h.

csTriangle::csTriangle const csTriangle &    t [inline]
 

Copy constructor.

Definition at line 44 of file tri.h.

References a, b, and c.


Member Function Documentation

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

Assignment.

Definition at line 52 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 61 of file tri.h.


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