← Back to carmenta.com
Carmenta Engine SDK Documentation
×

GlobeView.CameraPoint Property

Gets or sets the camera position.

Thread safety: This property is thread-safe.

Syntax

C#
public Point CameraPoint { get; set; }

Property Value

Type: Point
Default: X: 0.0 Y: 0.0 Z: 0.0
A point whose x and y-coordinates are defined in the coordinate reference system of the view and the z-coordinate specifies the height in meters.

Remarks

The position of the camera (viewer) in three dimensions.

Example

C#
// Set camera to view Gothenburg in a GlobeView
public static void SetCameraToViewGotheBurg(GlobeView globeView)
{
    // Set the CameraPitch to -80 degrees
    globeView.CameraPitch = -80.0;

    // Set the CameraBearing to 180 degrees, so the camera looks from north to south
    globeView.CameraBearing = 180.0;

    // The center coordinates of Gothenburg in Wgs84LongLat and altitude of 15.000m
    Point gothenburgCenter = new Point(11.974560, 57.708870, 15000.0);

    // Set the CameraPoint to Gothenburg center
    globeView.CameraPoint = gothenburgCenter;

    // Update the View
    globeView.Update();
}

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept