TargetCamera

data class TargetCamera<T : Number, Comparable<T>>(val eye: Vec3<T>, val target: Vec3<T> = Vec3.nullVector(eye.type), val upVector: Vec3<T> = Vec3.unitZ(eye.type)) : Camera<T>

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

Constructors

Link copied to clipboard
constructor(eye: Vec3<T>, target: Vec3<T> = Vec3.nullVector(eye.type), upVector: Vec3<T> = Vec3.unitZ(eye.type))

Properties

Link copied to clipboard
open override val eye: Vec3<T>

Position of the camera eye.

Link copied to clipboard
val target: Vec3<T>

Position of the camera target.

Link copied to clipboard

Up-vector preserved for the camera.

Link copied to clipboard
open override val viewMatrix: Mat4<T>

View matrix defined by the camera.