RelativeTargetCamera

data class RelativeTargetCamera(target: Vec3, distance: Float, longitude: Angle, latitude: Angle, upVector: Vec3) : 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

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

Properties

distance
Link copied to clipboard
common
val distance: Float
Distance from the target.
eye
Link copied to clipboard
common
open override val eye: Vec3
Position of the camera eye.
latitude
Link copied to clipboard
common
val latitude: Angle
Camera latitude relative to the target.
longitude
Link copied to clipboard
common
val longitude: Angle
Camera longitude relative to the target.
target
Link copied to clipboard
common
val target: Vec3
Position of the camera target.
upVector
Link copied to clipboard
common
val upVector: Vec3
Up-vector preserved for the camera.
viewMatrix
Link copied to clipboard
common
open override val viewMatrix: Mat4
View matrix defined by the camera.