FieldOfView


class FieldOfView


Field of view of a virtual or rendering camera.

Summary

Public constructors

FieldOfView(
    angleLeft: Float,
    angleRight: Float,
    angleUp: Float,
    angleDown: Float
)

Public functions

FieldOfView
copy(angleLeft: Float, angleRight: Float, angleUp: Float, angleDown: Float)
open operator Boolean
equals(other: Any?)
open Int
open String

Returns a string representation of FieldOfView for debugging.

Public properties

Float

the angle in radians of the bottom edge of the field of view

Float

the angle in radians of the left edge of the field of view

Float

the angle in radians of the right edge of the field of view

Float

the angle in radians of the top edge of the field of view

Public constructors

FieldOfView

Added in 1.0.0-beta02
FieldOfView(
    angleLeft: Float = Math.PI.toFloat() / 3,
    angleRight: Float = Math.PI.toFloat() / 3,
    angleUp: Float = Math.PI.toFloat() / 3,
    angleDown: Float = Math.PI.toFloat() / 3
)

Public functions

copy

Added in 1.0.0-beta02
fun copy(
    angleLeft: Float = this.angleLeft,
    angleRight: Float = this.angleRight,
    angleUp: Float = this.angleUp,
    angleDown: Float = this.angleDown
): FieldOfView

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Returns a string representation of FieldOfView for debugging.

Note: Not intended for production use.

Public properties

angleDown

Added in 1.0.0-beta02
val angleDownFloat

the angle in radians of the bottom edge of the field of view

angleLeft

Added in 1.0.0-beta02
val angleLeftFloat

the angle in radians of the left edge of the field of view

angleRight

Added in 1.0.0-beta02
val angleRightFloat

the angle in radians of the right edge of the field of view

angleUp

Added in 1.0.0-beta02
val angleUpFloat

the angle in radians of the top edge of the field of view