Wiki > TV3D65 Index > TVMathLibrary

Project3DPointTo2D

DESCRIPTION

Projects point from 3D world onto 2D screen.

DECLARATION

VB.NET Project3DPointTo2D(vPoint As TV_3DVECTOR , ret_x As Single , ret_y As Single , bFrontOnly As Boolean) As Boolean
C++ bool Project3DPointTo2D(cTV_3DVECTOR* vPoint , float* ret_x , float* ret_y , bool bFrontOnly )

PARAMETERS

NAMEOPTIONALDESCRIPTION
vPointNoPoint in 3D
bFrontOnlyNoIf true, projects only points in front of camera.

RETURN VALUE

NAMEDESCRIPTION
boolTrue on success
ret_xReference to calculated X coordinate
ret_yReference to calculated Y coordinate

EXAMPLES

ExampleBasic example.

TIPS

  • Use for projecting 3D points to 2D for drawing 2D health bars or text above objects in 3D
 
tvmathlibrary/project3dpointto2d.txt · Last modified: 2010/05/07 13:39 by 129.215.4.85