WorldToScreen

 

This method returns an indication of whether a specified terrain coordinate falls in the 3D Window. If it does, the screen coordinates of a specified point are given.

Implemented only in IRender4.

 

HRESULT WorldToScreen(

 [in] double WorldX,

 [in] double WorldHeight,

 [in] double WorldY,

 [out] VARIANT* doubleScreenX,

 [out] VARIANT* doubleScreenY,

 [in] int Mode,

 [out] VARIANT* boolInScreen,

 [out, retval] long* pVal)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.