CrystalSpace

Public API Reference

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

csVector3Array Class Reference
[Geometry utilities]

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

#include <poly3d.h>

Inheritance diagram for csVector3Array:

csPoly3D List of all members.

Public Methods

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.

Definition at line 288 of file poly3d.h.


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.

Definition at line 297 of file poly3d.h.

References csVector3::x, csVector3::y, and csVector3::z.


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