# FieldOfView

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/math/FieldOfView.kt+class:androidx.xr.runtime.math.FieldOfView) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

*** ** * ** ***


```
class FieldOfView
```

<br />

*** ** * ** ***

Field of view of a virtual or rendering camera.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#FieldOfView(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)( angleLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angleRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angleUp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angleDown: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#copy(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(angleLeft: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angleRight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angleUp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, angleDown: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView` for debugging. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#angleDown()` the angle in radians of the bottom edge of the field of view |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#angleLeft()` the angle in radians of the left edge of the field of view |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#angleRight()` the angle in radians of the right edge of the field of view |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView#angleUp()` the angle in radians of the top edge of the field of view |

## Public constructors

### FieldOfView

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#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](https://developer.android.com/jetpack/androidx/releases/xr-runtime#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 `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FieldOfView` for debugging.

Note: Not intended for production use.

## Public properties

### angleDown

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

```
val angleDown: Float
```

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

### angleLeft

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

```
val angleLeft: Float
```

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

### angleRight

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

```
val angleRight: Float
```

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

### angleUp

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

```
val angleUp: Float
```

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