njBezierSpline | Japanese
    겂|INDEX|걾
Bezier correction function

### Syntax

      #include <Ninja.h>
      void  njBezierSpline(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*sample point number])
odata
  Output data (but odata[3])
attr
  Spline attribute
frame
  Frame

### Return Value

  None

### Error

  None

### Description

  Bezier curve correction value is stored in the specified argument.
  Please set the frame number to a value between 0 and 1.
  For the attributes, please specify the sample point number
  at the iparam member (attr->iparam[0]) of the spline attribute structure.

### Usage Example

      #include <NINJA.H>
      #define X1      1.f
      #define Y1      0.f
      #define Z1      0.f
      #define X2      5.f
      ...........
      #define  POINTS  5

      float idata[3][5] =
      {
        {X1, Y1, Z1},
        {X2, Y2, Z2},
        {X3, Y3, Z3},
        {X4, Y4, Z4},
        {X5, Y5, Z5},
      };
      float odata[3];
      NJS_SPLINE  attr;

      ...........
      attr.iparam[0] = POINTS;
      njBezierSpline((float*)idata, odata, &attr, 0.5f);
      ...........

### Remark

  None

### Related Items

  njCubicBezier

njBezierSpline |
    겂|INDEX|걾