lookAtPoint

open fun lookAtPoint(@NonNull location: Point)

Helper function for setting orientation of the camera by defining a focus point. Elevation of 0.0 is used and no up vector. Note: Orientation can be invalid after this call, if the input leads to the camera being upside down or the quaternion has zero length.

Parameters

location

The `coordinate` representing focal point.


open fun lookAtPoint(@NonNull location: Point, altitude: Double)

Helper function for setting orientation of the camera by defining a focus point. No up vector is used. Note: Orientation can be invalid after this call, if the input leads to the camera being upside down or the quaternion has zero length.

Parameters

location

The `coordinate` representing focal point.

altitude

The altitude in meters of the focal point.


open fun lookAtPoint(@NonNull location: Point, altitude: Double, @NonNull upVector: Vec3)

Helper function for setting orientation of the camera by defining a focus point. Up vector is required in certain scenarios where bearing can't be deduced from the viewing direction. Note: Orientation can be invalid after this call, if the input leads to the camera being upside down or the quaternion has zero length.

Parameters

location

The `coordinate` representing focal point.

altitude

The altitude in meters of the focal point.

upVector

The up vector.