TargetCamera

data class TargetCamera(eye: Vec3, target: Vec3, upVector: Vec3) : Camera

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

Constructors

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

Functions

component1
Link copied to clipboard
common
operator fun component1(): Vec3
component2
Link copied to clipboard
common
operator fun component2(): Vec3
component3
Link copied to clipboard
common
operator fun component3(): Vec3
copy
Link copied to clipboard
common
fun copy(eye: Vec3, target: Vec3, upVector: Vec3 = Vec3.unitZ): TargetCamera
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

eye
Link copied to clipboard
common
open override val eye: Vec3
Position of the camera eye.
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.