![]() |
Public API Reference |
#include <path.h>
Inheritance diagram for csPath:
Public Methods | |
csPath (int p) | |
Create a path with p points. More... | |
virtual | ~csPath () |
Destroy the path. More... | |
int | Length () |
Get the number of vector points in this spline. More... | |
void | CalculateAtTime (float time) |
Calculate. More... | |
int | GetCurrentIndex () |
Get the index of the current point we are in (valid after Calculate()). More... | |
float | GetTime (int idx) |
Get one time value. More... | |
void | SetTime (int idx, float t) |
Set one time value. More... | |
void | SetPositionVectors (csVector3 *v) |
Set the position vectors (first three dimensions of the cubic spline). More... | |
void | SetUpVectors (csVector3 *v) |
Set the up vectors (dimensions 3 to 5). More... | |
void | SetForwardVectors (csVector3 *v) |
Set the forward vectors (dimensions 6 to 8). More... | |
void | SetPositionVector (int idx, const csVector3 &v) |
Set one position vector. More... | |
void | SetUpVector (int idx, const csVector3 &v) |
Set one up vector. More... | |
void | SetForwardVector (int idx, const csVector3 &v) |
Set one forward vector. More... | |
void | GetPositionVector (int idx, csVector3 &v) |
Get one position vector. More... | |
void | GetUpVector (int idx, csVector3 &v) |
Get one up vector. More... | |
void | GetForwardVector (int idx, csVector3 &v) |
Get one forward vector. More... | |
void | GetInterpolatedPosition (csVector3 &pos) |
Get the interpolated position. More... | |
void | GetInterpolatedUp (csVector3 &pos) |
Get the interpolated up vector. More... | |
void | GetInterpolatedForward (csVector3 &pos) |
Get the interpolated forward vector. More... |
An object or camera can use this object to trace a path in 3D. This is particularly useful in combination with csReversibleTransform::LookAt().
Definition at line 40 of file csgeom/path.h.
|
Create a path with p points.
Definition at line 68 of file csgeom/path.h. |
|
Destroy the path.
Definition at line 71 of file csgeom/path.h. |
|
Calculate.
Implements iPath. Definition at line 79 of file csgeom/path.h. References csBSpline::Calculate. |
|
Get the index of the current point we are in (valid after Calculate()).
Implements iPath. Definition at line 83 of file csgeom/path.h. References csSpline::GetCurrentIndex. |
|
Get one forward vector.
Implements iPath. Definition at line 147 of file csgeom/path.h. References csSpline::GetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
Get the interpolated forward vector.
Implements iPath. Definition at line 169 of file csgeom/path.h. References csBSpline::GetInterpolatedDimension, csVector3::x, csVector3::y, and csVector3::z. |
|
Get the interpolated position.
Implements iPath. Definition at line 155 of file csgeom/path.h. References csBSpline::GetInterpolatedDimension, csVector3::x, csVector3::y, and csVector3::z. |
|
Get the interpolated up vector.
Implements iPath. Definition at line 162 of file csgeom/path.h. References csBSpline::GetInterpolatedDimension, csVector3::x, csVector3::y, and csVector3::z. |
|
Get one position vector.
Implements iPath. Definition at line 133 of file csgeom/path.h. References csSpline::GetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
Get one time value.
Implements iPath. Definition at line 87 of file csgeom/path.h. References csSpline::GetTimeValue. |
|
Get one up vector.
Implements iPath. Definition at line 140 of file csgeom/path.h. References csSpline::GetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
Get the number of vector points in this spline.
Implements iPath. Definition at line 74 of file csgeom/path.h. References csSpline::GetPointCount. |
|
Set one forward vector.
Implements iPath. Definition at line 126 of file csgeom/path.h. References csSpline::SetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
Set the forward vectors (dimensions 6 to 8).
Implements iPath. Definition at line 107 of file csgeom/path.h. |
|
Set one position vector.
Implements iPath. Definition at line 112 of file csgeom/path.h. References csSpline::SetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
Set the position vectors (first three dimensions of the cubic spline).
Implements iPath. Definition at line 97 of file csgeom/path.h. |
|
Set one time value.
Implements iPath. Definition at line 91 of file csgeom/path.h. References csSpline::SetTimeValue. |
|
Set one up vector.
Implements iPath. Definition at line 119 of file csgeom/path.h. References csSpline::SetDimensionValue, csVector3::x, csVector3::y, and csVector3::z. |
|
Set the up vectors (dimensions 3 to 5).
Implements iPath. Definition at line 102 of file csgeom/path.h. |