curve.cxx File Reference

#include "marMatrix.h"
#include <math.h>
#include "marMathConst.h"
#include "curve.hxx"
Include dependency graph for curve.cxx:

Go to the source code of this file.

Defines

#define KCURVE_CHANGE_DIMENSIONS()

Functions

void f_catmull (double *N, double t)
void f_d1_catmull (double *N, double t)
void f_d2_catmull (double *N, double t)

Define Documentation

 
#define KCURVE_CHANGE_DIMENSIONS (  ) 
Value:
kCurve::MAX_DIMENSION = ( kCurve::MAX_DIMENSION > _dimension )?\
        kCurve::MAX_DIMENSION: _dimension;\
    kCurve::MAX_STATE_DIMENSION = ( kCurve::MAX_STATE_DIMENSION > _stateDim )?\
kCurve::MAX_STATE_DIMENSION: _stateDim;

Definition at line 29 of file curve.cxx.


Function Documentation

void f_catmull ( double *  N,
double  t 
)

Definition at line 38 of file curve.cxx.

00039 {
00040     double t2 = t * t;
00041     double t3 = t2 * t;
00042         
00043     N[ 0 ] = -t3 + ( 2 * t2 ) - t;
00044     N[ 1 ] = ( 3 * t3 ) - ( 5 * t2 ) + 2;
00045     N[ 2 ] = -( 3 * t3 ) + ( 4 * t2 ) + t;
00046     N[ 3 ] = t3 - t2;
00047 }

void f_d1_catmull ( double *  N,
double  t 
)

Definition at line 50 of file curve.cxx.

00051 {
00052     double t2 = t * t;
00053         
00054     N[ 0 ] = -( 3 * t2 ) + ( 4 * t ) - 1;
00055     N[ 1 ] = ( 9 * t2 ) - ( 10 * t );
00056     N[ 2 ] = -( 9 * t2 ) + ( 8 * t ) + 1;
00057     N[ 3 ] = ( 3 * t2 ) - ( 2 * t );
00058 }

void f_d2_catmull ( double *  N,
double  t 
)

Definition at line 61 of file curve.cxx.

00062 {
00063     N[ 0 ] = -( 6 * t ) + 4;
00064     N[ 1 ] = ( 18 * t ) - 10;
00065     N[ 2 ] = -( 18 * t ) + 8;
00066     N[ 3 ] = ( 6 * t ) - 2;
00067 }


Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1