RelativeTargetCamera

data class RelativeTargetCamera(    val target: Vec3,     val distance: Float,     val longitude: Angle,     val latitude: Angle,     val upVector: Vec3 = Vec3.unitZ) : Camera

A camera pointed at the given target, and located at the given distance from it, with the given longitude and latitude angles, while preserving the defined upVector.

Constructors

Link copied to clipboard
fun RelativeTargetCamera(    target: Vec3,     distance: Float,     longitude: Angle,     latitude: Angle,     upVector: Vec3 = Vec3.unitZ)

Properties

Link copied to clipboard
val distance: Float

Distance from the target.

Link copied to clipboard
open override val eye: Vec3

Position of the camera eye.

Link copied to clipboard
val latitude: Angle

Camera latitude relative to the target.

Link copied to clipboard
val longitude: Angle

Camera longitude relative to the target.

Link copied to clipboard
val target: Vec3

Position of the camera target.

Link copied to clipboard
val upVector: Vec3

Up-vector preserved for the camera.

Link copied to clipboard
open override val viewMatrix: Mat4

View matrix defined by the camera.