# SurfaceEntity.Shape.Hemisphere

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

*** ** * ** ***


```
public final class SurfaceEntity.Shape.Hemisphere implements SurfaceEntity.Shape
```

<br />

*** ** * ** ***

An inwards-facing hemisphere-shaped canvas, where (0,0,0) is the center of the base of the hemisphere. Radius is represented in the local spatial coordinate system of the entity. This is intended to be used by setting the entity's pose to the user's head pose. The center of the Surface will be mapped to (0, 0, -radius) in the local coordinate space, and texture coordinate UV's are applied from positive X to negative X in an equirectangular projection.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.Shape.Hemisphere#Hemisphere(kotlin.Float)(float radius)` |

| ### Public methods |
|---|---|
| `final float` | `https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.Shape.Hemisphere#getRadius()()` The radius of the hemisphere in the local spatial coordinate system of the entity. |

## Public constructors

### Hemisphere

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

```
public Hemisphere(float radius)
```

## Public methods

### getRadius

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

```
public final float getRadius()
```

The radius of the hemisphere in the local spatial coordinate system of the entity.