njCalcScreen | Japanese |
---|---|
--|INDEX|-> | |
Projects points in 3D space onto the screen, then finds the screen coordinates to which the points are projected. |
#include <Ninja.h> int njCalcScreen(*p, *sx, *sy) NJS_POINT3 *p Float *sx Float *sy
NJS_POINT3 p; Float sx, sy; p.x = 1000.f; p.y = 1000.f; p.z = 1000.f; njInitSystem(NJD_RESOLUTION_640x480, 1); njCalcScreen(&p, &sx, &sy); % Result % NG sx = 820.000000, sy = 740.000000
njCalcScreen | --|INDEX|-> |
---|