PerspectiveLens

data class PerspectiveLens<T : Number, Comparable<T>>(val fovY: Angle<T>, val aspect: T, val near: T, val far: T, val type: KClass<T>) : Lens<T>

A lens for a perspective projection defined by a given frustum.

The frustum is defined by its near and far depth clipping planes, and its field of view angle in the Y direction and aspect ratio between X and Y field of view.

Constructors

Link copied to clipboard
constructor(fovY: Angle<T>, aspect: T, near: T, far: T, type: KClass<T>)

Properties

Link copied to clipboard
val aspect: T
Link copied to clipboard
val far: T
Link copied to clipboard
val fovY: Angle<T>
Link copied to clipboard
val near: T
Link copied to clipboard
open override val projectionMatrix: Mat4<T>

Projection matrix defined by the lens.

Link copied to clipboard
val type: KClass<T>