VMECameraContext

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

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
fun VMECameraContext(target: VMELatLng, altitude: Double, radius: Double, pitch: Double, bearing: Double)

Create a VMECameraContext object

Functions

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

Properties

Link copied to clipboard
val altitude: Double

The altitude of the camera.

Link copied to clipboard
val bearing: Double

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

Link copied to clipboard
val pitch: Double

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
val radius: Double

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

Link copied to clipboard
val target: VMELatLng

The location that the camera is pointing at.