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)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Vec3
component2
Link copied to clipboard
common
operator fun component2(): Float
component3
Link copied to clipboard
common
operator fun component3(): Angle
component4
Link copied to clipboard
common
operator fun component4(): Angle
component5
Link copied to clipboard
common
operator fun component5(): Vec3
copy
Link copied to clipboard
common
fun copy(target: Vec3, distance: Float, longitude: Angle, latitude: Angle, upVector: Vec3 = Vec3.unitZ): RelativeTargetCamera
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

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.