*m | Calculation matrix |
*ps | Arbitrary point |
*pd | Point after conversion |
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)