njCalcPoint | Japanese
    <-|INDEX|->
Applies matrix conversion to an arbitrary point.

### FORMAT

      #include <Ninja.h>

      void njCalcPoint(*m, *ps, *pd)
      NJS_MATRIX *m
      NJS_POINT3 *ps
      NJS_POINT3 *pd

### PARAMETERS

NJS_MATRIX *m
  calculation matrix
NJS_POINT3 *ps
  arbitrary point
NJS_POINT3 *pd
  point after conversion

### RETURN VALUE

  None

### FUNCTION

- Applies matrix conversion to arbitrary point ps, then stores the post conversion coordinates of the point in pd.
- When parameter m is NULL, the current matrix is taken as the calculation matrix.

### EXAMPLE

  The following rotates point ps(100, 0, 0) by 45 degrees around the Y axis.

      NJS_MATRIX m;
      NJS_POINT3 ps, pd;

      ps.x = 100.f;
      ps.y = 0.f;
      ps.z = 0.f;
      njUnitMatrix(&m);
      njRotateY(&m, NJM_DEG_ANG(45));
      njCalcPoint(&m, &ps, &pd);

      % result %
      pd(70.710701, 00.000000, -70.710701)

### NOTES

### RELATED TOPICS

njCalcPoint |
    <-|INDEX|->