# GeospatialPose

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

*** ** * ** ***


```
class GeospatialPose
```

<br />

*** ** * ** ***

Describes a specific location, elevation, and orientation relative to Earth. It is comprised of:

- Latitude and longitude, specified in degrees, with positive values being north of the equator and east of the prime meridian as defined by the [WGS84 specification](https://en.wikipedia.org/wiki/World_Geodetic_System).

- Altitude is specified in meters above the WGS84 ellipsoid, which is roughly equivalent to meters above sea level.

- Orientation approximates the direction the user is facing in the EUS coordinate system. The EUS coordinate system has X+ pointing east, Y+ pointing up, and Z+ pointing south.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#GeospatialPose(kotlin.Double,kotlin.Double,kotlin.Double,androidx.xr.runtime.math.Quaternion)( latitude: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, longitude: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, altitude: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, eastUpSouthQuaternion: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` Returns true if this GeospatialPose is equal to the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#equals(kotlin.Any)`. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#altitude()` the altitude of the GeospatialPose in meters |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Quaternion` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#eastUpSouthQuaternion()` the orientation of the GeospatialPose in the EUS coordinate system |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#latitude()` the latitude of the GeospatialPose in degrees |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#longitude()` the longitude of the GeospatialPose in degrees |

## Public constructors

### GeospatialPose

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

```
GeospatialPose(
    latitude: Double = 0.0,
    longitude: Double = 0.0,
    altitude: Double = 0.0,
    eastUpSouthQuaternion: Quaternion = Quaternion()
)
```

## Public functions

### equals

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

Returns true if this GeospatialPose is equal to the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/GeospatialPose#equals(kotlin.Any)`.

### hashCode

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

### toString

```
open fun toString(): String
```

## Public properties

### altitude

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

```
val altitude: Double
```

the altitude of the GeospatialPose in meters

### eastUpSouthQuaternion

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

```
val eastUpSouthQuaternion: Quaternion
```

the orientation of the GeospatialPose in the EUS coordinate system

### latitude

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

```
val latitude: Double
```

the latitude of the GeospatialPose in degrees

### longitude

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

```
val longitude: Double
```

the longitude of the GeospatialPose in degrees