|
Syntax:
Project(float x, float y, float z), VECTOR3
Purpose:
Projects a point in world space to screen coordinates based on the camera's view and projection matrices.
Parameters:
x,y,z - The point in camera world space to project to screen space.
Returned value(s):
A VECTOR3 UDT. x = Screen X position, y = Screen Y position, z = a Z difference between 0.0 for the front plane and 1.0 for the back plane.
Application:
' Use sphere's position to get associated screen coordinates
vCamProject = cam1.Project(pSpherePos.x,pSpherePos.y,pSpherePos.z)
See Also:
Unproject
|