VMECameraContext

data class VMECameraContext(val target: VMELatLng, val altitude: Double, val radius: Double, val pitch: Double, val bearing: Double)(source)

An immutable class that aggregates all camera context such as target, altitude, bearing, pitch, and radius.

Since

1.24

Parameters

target

The latitude and longitude coordinates that the camera is focused on.

altitude

The distance (in meters) between the camera and the ground.

radius

The distance (in meters) between the camera and the target.

pitch

The tilt angle of the camera. A pitch of 0 degrees indicates the camera is looking at the horizon. A pitch of -90 degree indicates the camera is looking directly at the ground.

bearing

The bearing angle of the camera. A bearing of 0 degrees indicates North.

Constructors

Link copied to clipboard
constructor(target: VMELatLng, altitude: Double, radius: Double, pitch: Double, bearing: Double)

Create a VMECameraContext object

Properties

Link copied to clipboard

The altitude of the camera.

Link copied to clipboard

Direction that the camera is pointing in, in degrees clockwise from north.

Link copied to clipboard

The pitch, in degrees, of the camera angle from the horizon (0 degrees is looking towards the horizon, -90 is looking towards the ground, and 90 is looking towards the sky).

Link copied to clipboard

The distance between the camera to the ground along is pitch angle.

Link copied to clipboard

The location that the camera is pointing at.

Functions

Link copied to clipboard
open override fun toString(): String