TargetCamera

data class TargetCamera(    val eye: Vec3,     val target: Vec3,     val upVector: Vec3 = Vec3.unitZ) : Camera

A camera located in the eye position and pointed at the given target, while preserving the defined upVector.

Constructors

Link copied to clipboard
fun TargetCamera(    eye: Vec3,     target: Vec3,     upVector: Vec3 = Vec3.unitZ)

Properties

Link copied to clipboard
open override val eye: Vec3

Position of the camera eye.

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.