Description
Zooms to a Cartographic Extent on the centralBody. The camera will be looking straight down at the extent, with the up vector pointing toward local north. The
Axes is set to an east-north-up axes at the center of extent.
Syntax
| [Visual Basic .NET] |
|---|
Public Sub ViewExtent( _
ByVal CentralBody As String, _
ByRef Extent As System.Array _
)
|
| [Managed C++] |
|---|
public: void ViewExtent( String __gc ^ CentralBody, System::Array ^^ Extent );
|
Parameters
Example
Shows the format of the Extent parameter when zooming to a cartographic extent on a central body.
| [C#] | Copy Code |
|---|
Array extent = new object[]
{
90,
30,
-77,
39
};
scene.Camera.ViewExtent(
"Earth",
ref extent);
|
|
Shows the format of the Extent parameter when zooming to a cartographic extent on a central body.
| [Visual Basic .NET] | Copy Code |
|---|
Dim extent As Array = New Object() {90, 30, -77, 39}
scene.Camera.ViewExtent("Earth", extent)
|
|
See Also