# PerceptionSpaceTester

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

*** ** * ** ***


```
class PerceptionSpaceTester
```

<br />

*** ** * ** ***

A test-only data accessor for perception space that enables direct manipulation and inspection of its internal state.

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PerceptionSpaceTester#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/scenecore/testing/PerceptionSpaceTester#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/HitTestResult?` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PerceptionSpaceTester#hitTestResult()` The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/HitTestResult` to be returned by subsequent calls to `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/BaseScenePose#hitTest(androidx.xr.runtime.math.Vector3,androidx.xr.runtime.math.Vector3,kotlin.Int)`. |

## Public functions

### equals

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

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### hitTestResult

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

```
var hitTestResult: HitTestResult?
```

The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/HitTestResult` to be returned by subsequent calls to `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/BaseScenePose#hitTest(androidx.xr.runtime.math.Vector3,androidx.xr.runtime.math.Vector3,kotlin.Int)`.

This property is typically used for testing or simulation purposes, allowing you to define the outcome of hit tests performed within the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PerceptionSpace`.

Setting a non-null value describes the location and normal of the closest object hit, relative to the origin of the hit test ray. Set to `null` to simulate the hit test not intersecting with any objects.