Stay organized with collections
Save and categorize content based on your preferences.
class Fov
The angles (in radians) representing the sides of the view frustum. These are not expected to change over the lifetime of the session but in rare cases may change due to updated camera settings.
Summary
Public functions
fun copy(
angleLeft: Float = this.angleLeft,
angleRight: Float = this.angleRight,
angleUp: Float = this.angleUp,
angleDown: Float = this.angleDown
): Fov
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# Fov\n===\n\nArtifact: [androidx.xr.scenecore:scenecore](/jetpack/androidx/releases/xr-scenecore) \n[View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/Types.kt+class:androidx.xr.scenecore.Fov) \nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/xr/scenecore/Fov \"View this page in Java\")\n\n\n```\nclass Fov\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe angles (in radians) representing the sides of the view frustum. These are not expected to change over the lifetime of the session but in rare cases may change due to updated camera settings.\n\nSummary\n-------\n\n| ### Public constructors |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Fov](/reference/kotlin/androidx/xr/scenecore/Fov#Fov(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float))`(angleLeft: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, angleRight: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, angleUp: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, angleDown: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` |\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Fov](/reference/kotlin/androidx/xr/scenecore/Fov) | [copy](/reference/kotlin/androidx/xr/scenecore/Fov#copy(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float))`(angleLeft: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, angleRight: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, angleUp: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, angleDown: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` |\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/reference/kotlin/androidx/xr/scenecore/Fov#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/xr/scenecore/Fov#hashCode())`()` |\n| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](/reference/kotlin/androidx/xr/scenecore/Fov#toString())`()` |\n\n| ### Public properties |\n|---------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [angleDown](/reference/kotlin/androidx/xr/scenecore/Fov#angleDown()) |\n| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [angleLeft](/reference/kotlin/androidx/xr/scenecore/Fov#angleLeft()) |\n| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [angleRight](/reference/kotlin/androidx/xr/scenecore/Fov#angleRight()) |\n| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [angleUp](/reference/kotlin/androidx/xr/scenecore/Fov#angleUp()) |\n\nPublic constructors\n-------------------\n\n### Fov\n\nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04) \n\n```\nFov(angleLeft: Float, angleRight: Float, angleUp: Float, angleDown: Float)\n``` \n\nPublic functions\n----------------\n\n### copy\n\nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04) \n\n```\nfun copy(\n angleLeft: Float = this.angleLeft,\n angleRight: Float = this.angleRight,\n angleUp: Float = this.angleUp,\n angleDown: Float = this.angleDown\n): Fov\n``` \n\n### equals\n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nopen fun hashCode(): Int\n``` \n\n### toString\n\n```\nopen fun toString(): String\n``` \n\nPublic properties\n-----------------\n\n### angleDown\n\nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04) \n\n```\nval angleDown: Float\n``` \n\n### angleLeft\n\nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04) \n\n```\nval angleLeft: Float\n``` \n\n### angleRight\n\nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04) \n\n```\nval angleRight: Float\n``` \n\n### angleUp\n\nAdded in [1.0.0-alpha04](/jetpack/androidx/releases/xr-scenecore#1.0.0-alpha04) \n\n```\nval angleUp: Float\n```"]]