# RangingPosition

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

*** ** * ** ***


```
class RangingPosition
```

<br />

*** ** * ** ***

Position of a device during ranging.

The angles are the angle of arrival measured by the UWB hardware, relative to the boresight of this device's UWB antenna array, which is the normal to the back of the device. Sensor fusion sessions report angles in a different frame, see `https://developer.android.com/reference/kotlin/androidx/core/uwb/SensorFusionResult.Estimate`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingPosition#RangingPosition(androidx.core.uwb.RangingMeasurement,androidx.core.uwb.RangingMeasurement,androidx.core.uwb.RangingMeasurement,kotlin.Long)( distance: https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingMeasurement?, azimuth: https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingMeasurement?, elevation: https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingMeasurement?, elapsedRealtimeNanos: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingMeasurement?` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingPosition#azimuth()` The azimuth angle in degrees of the ranging device, or null if not available. |
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingMeasurement?` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingPosition#distance()` The line-of-sight distance in meters of the ranging device, or null if not available. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingPosition#elapsedRealtimeNanos()` The elapsed realtime in nanos from when the system booted up to this position measurement. |
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingMeasurement?` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingPosition#elevation()` The elevation angle in degrees of the ranging device, or null if not available. |

## Public constructors

### RangingPosition

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

```
RangingPosition(
    distance: RangingMeasurement?,
    azimuth: RangingMeasurement?,
    elevation: RangingMeasurement?,
    elapsedRealtimeNanos: Long
)
```

## Public properties

### azimuth

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

```
val azimuth: RangingMeasurement?
```

The azimuth angle in degrees of the ranging device, or null if not available. A positive azimuth means the peer is to the right of the boresight. The range is `[-180, 180]`.

### distance

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

```
val distance: RangingMeasurement?
```

The line-of-sight distance in meters of the ranging device, or null if not available.

### elapsedRealtimeNanos

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

```
val elapsedRealtimeNanos: Long
```

The elapsed realtime in nanos from when the system booted up to this position measurement.

### elevation

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

```
val elevation: RangingMeasurement?
```

The elevation angle in degrees of the ranging device, or null if not available. The angle is measured out of the azimuth plane. The range is `[-90, 90]`.