Package graphics.glimpse.lenses

Lenses, defining projection matrix.

Types

Link copied to clipboard
data class FrustumLens(    val left: Float,     val right: Float = -left,     val bottom: Float,     val top: Float = -bottom,     val near: Float,     val far: Float) : Lens

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

Link copied to clipboard
interface Lens

An interface for a lens.

Link copied to clipboard
data class OrthographicLens(    val left: Float,     val right: Float = -left,     val bottom: Float,     val top: Float = -bottom,     val near: Float,     val far: Float) : Lens

A lens for an orthographic (parallel) projection defined by a given set of clipping planes: left, right, bottom, top, near and far.

Link copied to clipboard
data class PerspectiveLens(    val fovY: Angle,     val aspect: Float,     val near: Float,     val far: Float) : Lens

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