FreeCameraOptions

class FreeCameraOptions

Various options for accessing physical properties of the underlying camera entity. A direct access to these properties allows more flexible and precise controlling of the camera while also being fully compatible and interchangeable with CameraOptions. All fields are optional.

Functions

getOrientation
Link copied to clipboard
open fun getOrientation(): Vec4
Get the orientation of the camera represented as a unit quaternion [x, y, z, w].
getPosition
Link copied to clipboard
open fun getPosition(): Vec3
Get the position of the camera in slightly modified web mercator coordinates - The size of 1 unit is the width of the projected world instead of the "mercator meter".
lookAtPoint
Link copied to clipboard
open fun lookAtPoint(@NonNull location: Point)
open fun lookAtPoint(@NonNull location: Point, altitude: Double)
open fun lookAtPoint(@NonNull location: Point, altitude: Double, @NonNull upVector: Vec3)
Helper function for setting orientation of the camera by defining a focus point.
setLocation
Link copied to clipboard
open fun setLocation(@NonNull location: Point, altitude: Double)
Helper function for setting the mercator position as Lat&Lng and altitude in meters
setOrientation
Link copied to clipboard
open fun setOrientation(@Nullable orientation: Vec4)
Set the orientation of the camera represented as a unit quaternion [x, y, z, w].
setPitchBearing
Link copied to clipboard
open fun setPitchBearing(pitch: Double, bearing: Double)
Helper function for setting the orientation of the camera as a pitch and a bearing.
setPosition
Link copied to clipboard
open fun setPosition(@Nullable position: Vec3)
Set the position of the camera in slightly modified web mercator coordinates - The size of 1 unit is the width of the projected world instead of the "mercator meter".