# 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-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

*** ** * ** ***


```
public final 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/androidx/xr/runtime/math/GeospatialPose#GeospatialPose(kotlin.Double,kotlin.Double,kotlin.Double,androidx.xr.runtime.math.Quaternion)( double latitude, double longitude, double altitude, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Quaternion eastUpSouthQuaternion )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Returns true if this GeospatialPose is equal to the `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#equals(kotlin.Any)`. |
| `final double` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#getAltitude()()` the altitude of the GeospatialPose in meters |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Quaternion` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#getEastUpSouthQuaternion()()` the orientation of the GeospatialPose in the EUS coordinate system |
| `final double` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#getLatitude()()` the latitude of the GeospatialPose in degrees |
| `final double` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#getLongitude()()` the longitude of the GeospatialPose in degrees |
| `int` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/math/GeospatialPose#toString()()` |

## Public constructors

### GeospatialPose

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

```
public GeospatialPose(
    double latitude,
    double longitude,
    double altitude,
    @NonNull Quaternion eastUpSouthQuaternion
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

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

### getAltitude

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

```
public final double getAltitude()
```

the altitude of the GeospatialPose in meters

### getEastUpSouthQuaternion

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

```
public final @NonNull Quaternion getEastUpSouthQuaternion()
```

the orientation of the GeospatialPose in the EUS coordinate system

### getLatitude

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

```
public final double getLatitude()
```

the latitude of the GeospatialPose in degrees

### getLongitude

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

```
public final double getLongitude()
```

the longitude of the GeospatialPose in degrees

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```