*m | Calculation matrix |
*ps | Arbitrary point array |
*pd | Point array after conversion |
num | Number of points |
The following rotates 5 points stored in array ps by 45 degrees around the Y axis. NJS_MATRIX m; NJS_POINT3 ps[5], pd[5]; : njUnitMatrix(&m); njRotateY(&m, NJM_DEG_ANG(45)); njCalcPoints(&m, ps, pd, 5); :