Initializes a new instance of the Viewpoint class using a pair of points, representing an observer position and a target location.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public Viewpoint(
	Point observer,
	Point target
)
Visual Basic (Declaration)
Public Sub New ( _
	observer As Point, _
	target As Point _
)

Parameters

observer
Type: ESRI.ArcGISExplorer.Geometry..::.Point

A Point representing the position that you are looking from.
target
Type: ESRI.ArcGISExplorer.Geometry..::.Point

A Point representing the location you are looking at.

Remarks

Use this constructor to store a viewpoint in 3D display mode. Storing a 3D viewpoint relies on two points:
  • The observer: the position that you are looking from- where the Z value of the point represents the observers altitude.
  • The target: the location you are looking at- a point, usually on the globe surface.
When using the MapDisplay class to zoom to an observer\target viewpoint, the map will be centered on the target location, and the observer point determines the altitude and azimuth of your viewing position. The Rotation property will always return zero when using this constructor.

See Also