Companion

Properties

Link copied to clipboard

Default vertical FOV ≈ 45° expressed as π/4 radians.

Functions

Link copied to clipboard
fun fromVerticalFovDegrees(near: Float, far: Float, verticalFovDegrees: Float): ZPerspectiveLens

Constructs a lens with vertical FOV given in degrees (stored as radians).

fun fromVerticalFovDegrees(near: Float, far: Float, verticalFovDegrees: Float, aspectRatio: Float): ZPerspectiveLens

Constructs a lens with vertical FOV in degrees and explicit aspect ratio (stored as radians).