Companion
object Companion
Functions
Link copied to clipboard
Helper to compute the effective focal length taking into account the focus distance.
Link copied to clipboard
Helper to compute the effective field-of-view taking into account the focus distance.
Link copied to clipboard
Returns the inverse of a projection matrix.
Link copied to clipboard
fun projection(focalLengthInMillimeters: Double, aspect: Double, near: Double, far: Double = Double.POSITIVE_INFINITY, out: DoubleArray? = null): DoubleArray
Returns the projection matrix from the focal length.
fun projection(direction: Camera.Fov, fovInDegrees: Double, aspect: Double, near: Double, far: Double = Double.POSITIVE_INFINITY, out: DoubleArray? = null): DoubleArray
Returns the projection matrix from the field-of-view.