# TestPlane

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

*** ** * ** ***


```
class TestPlane : TestTrackable
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.xr.arcore.testing.TestTrackable](https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestTrackable) ||
|   | ↳ | [androidx.xr.arcore.testing.TestPlane](https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane) |

*** ** * ** ***

Flat surface in the test environment.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#TestPlane(androidx.xr.arcore.PlaneType,androidx.xr.arcore.PlaneLabel)(planeType: https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneType, planeLabel: https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneLabel)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#centerPose()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` at the center of the plane |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#extents()` a pair of extents describing the size of the plane |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#isVisible()` indicates whether the trackable object is currently in view of the runtime |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneLabel` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#label()` the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneLabel` that describes the surface |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane?` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#subsumedBy()` a possible other plane that this plane has been merged into |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneType` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#type()` the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneType` of the surface |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector2>` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestPlane#vertices()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector2` vertices of a convex polygon approximating the detected plane |

## Public constructors

### TestPlane

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

```
TestPlane(planeType: PlaneType, planeLabel: PlaneLabel)
```

## Public properties

### centerPose

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

```
var centerPose: Pose
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` at the center of the plane

### extents

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

```
var extents: FloatSize2d
```

a pair of extents describing the size of the plane

### isVisible

```
open var isVisible: Boolean
```

indicates whether the trackable object is currently in view of the runtime

### label

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

```
var label: PlaneLabel
```

the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneLabel` that describes the surface

### subsumedBy

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

```
var subsumedBy: TestPlane?
```

a possible other plane that this plane has been merged into

### type

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

```
var type: PlaneType
```

the `https://developer.android.com/reference/kotlin/androidx/xr/arcore/PlaneType` of the surface

### vertices

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

```
var vertices: List<Vector2>
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector2` vertices of a convex polygon approximating the detected plane