FreeCamera

data class FreeCamera<T : Number, Comparable<T>>(val eye: Vec3<T>, val roll: Angle<T>, val pitch: Angle<T>, val yaw: Angle<T>) : Camera<T>

A freely transformed camera, defined by its eye position, and its rotations: roll, pitch, yaw.

Constructors

Link copied to clipboard
constructor(eye: Vec3<T>, roll: Angle<T>, pitch: Angle<T>, yaw: Angle<T>)

Types

Link copied to clipboard
object Companion

Properties

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

Position of the camera eye.

Link copied to clipboard
val pitch: Angle<T>

Camera pitch angle (point upwards/downwards).

Link copied to clipboard
val roll: Angle<T>

Camera roll angle (clockwise/anticlockwise rotation of the camera eye).

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

View matrix defined by the camera.

Link copied to clipboard
val yaw: Angle<T>

Camera yaw angle (camera heading rotation)