Description
Converts a Cartographic position to a pixel
coordinate relative to the globe control. This method can throw an
exception. Returns an array containing the pixel coordinate (in the
order x, y) of the Cartographic position relative to the globe
control. The coordinate can be fractional.
Syntax
[Visual Basic .NET] |
Public Function CartographicToWindow( _
ByVal CentralBody As String, _
ByRef Position As System.Array _
) As System.Array
|
[C#] |
public System.Array CartographicToWindow(
string CentralBody,
ref System.Array Position
);
|
[Managed C++] |
public: System::Array CartographicToWindow(
String __gc ^ CentralBody,
System::Array ^^ Position
);
|
Parameters
Example
Shows the format of
the Position parameter when converting a cartogaphic position to a
pixel coordinate.
[C#] |
Copy Code
|
Array position = new object[]
{
0.627,
-1.644,
0
};
Array windowPos = scene.Camera.CartographicToWindow(
"Earth",
ref position);
|
|
Shows the format of
the Position parameter when converting a cartogaphic position to a
pixel coordinate.
[Visual Basic .NET] |
Copy Code
|
Dim position As
Array = New Object() {0.627,
-1.644, 0}
Dim windowPos As Array =
scene.Camera.CartographicToWindow("Earth", position)
|
|
See Also