kzu_projection.h File Reference

Utility for calculating 2D pixel coordinate from 3D point and camera projection. More...

Namespaces

 kanzi
 

Functions

kzsError kzuProjectionVector3ToPixelCoordinates (const KzcVector3 &vectorInWorldCoordinates, kanzi::Camera &cameraNode, const KzcDynamicArray *transformedObjects, kzInt viewportX, kzInt viewportY, kzUint viewportWidth, kzUint viewportHeight, kzInt *out_x, kzInt *out_y)
 Projection vec3 in world coordinates to actual pixel coordinates. More...
 

Detailed Description

Utility for calculating 2D pixel coordinate from 3D point and camera projection.

Copyright 2008-2017 by Rightware. All rights reserved.

Function Documentation

kzsError kzuProjectionVector3ToPixelCoordinates ( const KzcVector3 vectorInWorldCoordinates,
kanzi::Camera cameraNode,
const KzcDynamicArray transformedObjects,
kzInt  viewportX,
kzInt  viewportY,
kzUint  viewportWidth,
kzUint  viewportHeight,
kzInt out_x,
kzInt out_y 
)

Projection vec3 in world coordinates to actual pixel coordinates.

Result in X, Y pixel coordinates using mathematical coordinate system from bottom-left growing to top-right.