FrustumLens

data class FrustumLens(left: Float, right: Float, bottom: Float, top: 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 left, right, bottom and top clipping planes (specified at the near depth).

Constructors

FrustumLens
Link copied to clipboard
common
fun FrustumLens(left: Float, right: Float = -left, bottom: Float, top: Float = -bottom, near: Float, far: Float)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Float
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
component5
Link copied to clipboard
common
operator fun component5(): Float
component6
Link copied to clipboard
common
operator fun component6(): Float
copy
Link copied to clipboard
common
fun copy(left: Float, right: Float = -left, bottom: Float, top: Float = -bottom, near: Float, far: Float): FrustumLens
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

bottom
Link copied to clipboard
common
val bottom: Float
far
Link copied to clipboard
common
val far: Float
left
Link copied to clipboard
common
val left: Float
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.
right
Link copied to clipboard
common
val right: Float
top
Link copied to clipboard
common
val top: Float