njHermiteSpline Japanese
|INDEX|
Hermite spline correction function

Syntax

#include <Ninja.h>
void  njHermiteSpline(float *idata, float *odata, NJS_SPLINE *attr, float frame);
float       *idata
float       *odata
NJS_SPLINE  *attr
float       frame

Arguments

idata
Input data (but idata[3*4])
odata
Output data (but odata[3])
attr
Spline attribute (not required)
frame
Frame

Return Value

None

Error

None

Description

Spline curve correction value is stored in the specified argument.
Please set the frame number to a value between 0 and 1.

Usage Example

#include <NINJA.H> 
#define X1  1.f
#define Y1  0.f
#define Z1  0.f
#define X2  10.f
#define Y2  0.f
#define Z2  2.f
#define NX1  1.f
#define NY1  0.f
#define NZ1  0.f
#define NX2  0.8f
#define NY2  0.f
#define NZ2  0.6f

...........

float idata[3][4] = 
{
  {X1, Y1, Z1},
  {X2, Y2, Z2},
  {NX1, NY1, NZ1},
  {NX2, NY2, NZ2},
};
float odata[3];

...........

njHermiteSpline((float*)idata, odata, NULL, 0.5f); 
...........

Remark

None

Related Items


njHermiteSpline
|INDEX|

Copyright SEGA ENTERPRISES, LTD., 1998