PerspectiveLens

data class PerspectiveLens(fovY: Angle, aspect: Float, near: Float, far: Float) : Lens

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

PerspectiveLens
Link copied to clipboard
common
fun PerspectiveLens(fovY: Angle, aspect: Float, near: Float, far: Float)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Angle
component2
Link copied to clipboard
common
operator fun component2(): Float
component3
Link copied to clipboard
common
operator fun component3(): Float
component4
Link copied to clipboard
common
operator fun component4(): Float
copy
Link copied to clipboard
common
fun copy(fovY: Angle, aspect: Float, near: Float, far: Float): PerspectiveLens
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

aspect
Link copied to clipboard
common
val aspect: Float
far
Link copied to clipboard
common
val far: Float
fovY
Link copied to clipboard
common
val fovY: Angle
near
Link copied to clipboard
common
val near: Float
projectionMatrix
Link copied to clipboard
common
open override val projectionMatrix: Mat4
Projection matrix defined by the lens.