Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPath Class Reference

A path in 3D. More...

#include <path.h>

Inheritance diagram for csPath:

csCatmullRomSpline csBSpline csSpline List of all members.

Public Methods

 csPath (int p)
 Create a path with p points.

virtual ~csPath ()
 Destroy the path.

void SetPositionVectors (csVector3 *v)
 Set the position vectors (first three dimensions of the cubic spline).

void SetUpVectors (csVector3 *v)
 Set the up vectors (dimensions 3 to 5).

void SetForwardVectors (csVector3 *v)
 Set the forward vectors (dimensions 6 to 8).

void SetPositionVector (int idx, const csVector3 &v)
 Set one position vector.

void SetUpVector (int idx, const csVector3 &v)
 Set one up vector.

void SetForwardVector (int idx, const csVector3 &v)
 Set one forward vector.

void GetPositionVector (int idx, csVector3 &v)
 Get one position vector.

void GetUpVector (int idx, csVector3 &v)
 Get one up vector.

void GetForwardVector (int idx, csVector3 &v)
 Get one forward vector.

void GetInterpolatedPosition (csVector3 &pos)
 Get the interpolated position.

void GetInterpolatedUp (csVector3 &pos)
 Get the interpolated up vector.

void GetInterpolatedForward (csVector3 &pos)
 Get the interpolated forward vector.


Detailed Description

A path in 3D.

An object or camera can use this object to trace a path in 3D. This is particularly useful in combination with csReversibleTransform::LookAt().


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