FreeCamera

data class FreeCamera(eye: Vec3, roll: Angle, pitch: Angle, yaw: Angle) : Camera

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

Constructors

FreeCamera
Link copied to clipboard
common
fun FreeCamera(eye: Vec3, roll: Angle, pitch: Angle, yaw: Angle)

Types

Companion
Link copied to clipboard
common
object Companion

Properties

eye
Link copied to clipboard
common
open override val eye: Vec3
Position of the camera eye.
pitch
Link copied to clipboard
common
val pitch: Angle
Camera pitch angle (point upwards/downwards).
roll
Link copied to clipboard
common
val roll: Angle
Camera roll angle (clockwise/anticlockwise rotation of the camera eye).
viewMatrix
Link copied to clipboard
common
open override val viewMatrix: Mat4
View matrix defined by the camera.
yaw
Link copied to clipboard
common
val yaw: Angle
Camera yaw angle (camera heading rotation)