##### Ninja Library - Mathematical Function

# njLinear

Stores line shape correction value

### FORMAT

`

  void njLinear( *idata, *odata, *attr, frame )
  float *idata
  float *odata
  NJS_SPLINE *attr
  float frame

`

### PARAMETER

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

### RETURN

  None

### DESCRIPTION

  Stores line shape correction value in the specified parameter. Please set the frame number to a value between 0 and 1.

### EXAMPLE

      #include <Shinobi.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
      	:
      float idata[3][2] =
      {
       {X1, Y1, Z1},
       {X2, Y2, Z2},
      };
      float odata[3];
      	:
      njLinear((float*)idata, odata, NULL, 0.5f);
      	:

njLinear

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999