# androidx.xr.runtime.testing.math

*** ** * ** ***

## Top-level functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/testing/math/package-summary#assertPose(androidx.xr.runtime.math.Pose,androidx.xr.runtime.math.Pose,kotlin.Float)(actual: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose, expected: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose, epsilon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Asserts that two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose`s are equal. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/testing/math/package-summary#assertRotation(androidx.xr.runtime.math.Quaternion,androidx.xr.runtime.math.Quaternion,kotlin.Float)(actual: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion, expected: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion, epsilon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Asserts that two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion`s are equal. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/testing/math/package-summary#assertVector3(androidx.xr.runtime.math.Vector3,androidx.xr.runtime.math.Vector3,kotlin.Float)(actual: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3, expected: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3, epsilon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Asserts that two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3`s are equal. |

## Top-level functions

### assertPose

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

```
fun assertPose(actual: Pose, expected: Pose, epsilon: Float = 1.0E-5f): Unit
```

Asserts that two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose`s are equal.

| Parameters |
|---|---|
| `actual: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | the actual `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` to compare |
| `expected: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | the expected `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` to compare |
| `epsilon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0E-5f` | the maximum difference allowed between the two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` objects |

### assertRotation

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

```
fun assertRotation(
    actual: Quaternion,
    expected: Quaternion,
    epsilon: Float = 1.0E-5f
): Unit
```

Asserts that two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion`s are equal.

| Parameters |
|---|---|
| `actual: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` | the actual `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` to compare |
| `expected: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` | the expected `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` to compare |
| `epsilon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0E-5f` | the maximum difference allowed between the two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` objects |

### assertVector3

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

```
fun assertVector3(actual: Vector3, expected: Vector3, epsilon: Float = 1.0E-5f): Unit
```

Asserts that two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3`s are equal.

| Parameters |
|---|---|
| `actual: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` | the actual `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` to compare |
| `expected: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` | the expected `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` to compare |
| `epsilon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0E-5f` | the maximum difference allowed between the two `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` objects |