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

Polygon Class Reference

#include <polygon.h>

List of all members.


Detailed Description

Polygon abstraction class (triangles only).

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 Polygon ()
 Polygon (unsigned short v0, unsigned short v1, unsigned short v2)
 Polygon (unsigned short *pusIndices)
 Polygon (const Polygon &rkPoly)
unsigned short & operator[] (int iIndex)
Polygonoperator= (const Polygon &rkPoly)
bool operator== (const Polygon &rkPoly) const
bool operator< (const Polygon &rkPoly) const

Public Attributes

unsigned short v [3]


Constructor & Destructor Documentation

Polygon  )  [inline]
 

Polygon unsigned short  v0,
unsigned short  v1,
unsigned short  v2
[inline]
 

Parameters:
v0 First index
v1 Second index
v2 Third index

Polygon unsigned short *  pusIndices  )  [inline]
 

Parameters:
pusIndices Indices pointer

Polygon const Polygon rkPoly  )  [inline]
 

Parameters:
rkPoly Polygon reference object


Member Function Documentation

unsigned short& operator[] int  iIndex  )  [inline]
 

Array access (no range check)

Parameters:
iIndex Component to access

Polygon& operator= const Polygon rkPoly  )  [inline]
 

Parameters:
rkPoly Polygon reference object
Returns:
ref to this

bool operator== const Polygon rkPoly  )  const [inline]
 

Useful operator, compare two polygons

Parameters:
rkPoly Polygon to compare with
Returns:
true if indices are equal, false if not

bool operator< const Polygon rkPoly  )  const [inline]
 

Dummy method for Win32 compatibility (template instantiation)

Parameters:
rkPoly Polygon to compare with
Returns:
false


Member Data Documentation

unsigned short v[3]
 

Indices


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:13 2004 for NeoEngine by doxygen 1.3.5