Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csVector3Array Class Reference

This is actually the same class as csPoly3D. More...

#include <poly3d.h>

Inheritance diagram for csVector3Array:

csPoly3D List of all members.

Public Methods

 csVector3Array (int start_size=10)
int AddVertexSmart (const csVector3 &v)
 Add a vertex but first check if it isn't already present in the array. More...

int AddVertexSmart (float x, float y, float z)
 Add a vertex but first check if it isn't already present in the array. More...


Detailed Description

This is actually the same class as csPoly3D.

But it has been renamed to make it clear that it is for other uses. It also adds some functionality specific to that use. In particular this class is more used to hold an unordered collection of 3D vectors.


Member Function Documentation

int csVector3Array::AddVertexSmart ( float x,
float y,
float z )
 

Add a vertex but first check if it isn't already present in the array.

Return the index that the vertex was added too.

int csVector3Array::AddVertexSmart ( const csVector3 & v ) [inline]
 

Add a vertex but first check if it isn't already present in the array.

Return the index that the vertex was added too.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000