void njCalcPointEx( *ps, *pd )
NJS_POINT3 *ps
NJS_POINT3 *pd
*ps 任意の点の座標 *pd 変換後の点の座標
なし
カレントマットリックスで任意の点*psにマトリクス変換を行い 変換後の座標を*pdに格納します。
点ps(100, 0, 0)をY軸の周りに45度回転 Angle ang[3] NJS_POINT3 ps, pd; ps.x = 100.f; ps.y = 0.f; ps.z = 0.f; ang[0] = NJM_DEG_ANG(0); ang[1] = NJM_DEG_ANG(45); ang[2] = NJM_DEG_ANG(0); njUnitMatrix(NULL); njRotateEx(ang,FALSE); njCalcPointEx(&ps, &pd); /* Result */ pd(70.710701, 00,000000, -70.710701)