# XRGeospatialPoseResult

Represents the result when converting a pose in Unity world space into [XRGeospatialPose](https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPose#structGoogle_1_1XR_1_1Extensions_1_1XRGeospatialPose).

## Summary

### Inheritance

Inherits from: `IEquatable< XRGeospatialPoseResult >`

| ### Public attributes ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#horizontalaccuracy` | `double` The estimated horizontal accuracy of the Geospatial pose position, defined as the radius in meters of the circle of 68% confidence level around the given latitude and longitude. |
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#ispositionvalid => LocationFlags.HasFlag(XrSpaceLocationFlags.PositionValid)` | `bool` Gets a value indicating whether the position is valid. |
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#isrotationvalid => LocationFlags.HasFlag(XrSpaceLocationFlags.OrientationValid) && OrientationYawAccuracy > 0` | `bool` Gets a value indicating whether the rotation is valid. |
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#locationflags` | `XrSpaceLocationFlags` Indicates the valid fields of the result. |
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#orientationyawaccuracy` | `double` The estimated yaw accuracy of the Geospatial pose orientation, defined as the radius in degrees of 68% confidence level around the given orientation. |
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#pose` | `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPose#structGoogle_1_1XR_1_1Extensions_1_1XRGeospatialPose` The geospatial pose converted from the given Unity pose. |
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#verticalaccuracy` | `double` The estimated vertical accuracy of the Geospatial pose position, defined as the distance in meters of 68% confidence level around the given altitude. |

| ### Public functions ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#equals(https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#structGoogle_1_1XR_1_1Extensions_1_1XRGeospatialPoseResult other)` | `bool` |

## Public attributes

### HorizontalAccuracy

```c#
double Google::XR::Extensions::XRGeospatialPoseResult::HorizontalAccuracy
```
The estimated horizontal accuracy of the Geospatial pose position, defined as the radius in meters of the circle of 68% confidence level around the given latitude and longitude.

### IsPositionValid

```c#
bool Google::XR::Extensions::XRGeospatialPoseResult::IsPositionValid =>
            LocationFlags.HasFlag(XrSpaceLocationFlags.PositionValid)
```
Gets a value indicating whether the position is valid.


| Details ||
|---|---|
| **Returns** | True if valid. |

### IsRotationValid

```c#
bool Google::XR::Extensions::XRGeospatialPoseResult::IsRotationValid =>
            LocationFlags.HasFlag(XrSpaceLocationFlags.OrientationValid) &&
            OrientationYawAccuracy > 0
```
Gets a value indicating whether the rotation is valid.


| Details ||
|---|---|
| **Returns** | True if valid. |

### LocationFlags

```c#
XrSpaceLocationFlags Google::XR::Extensions::XRGeospatialPoseResult::LocationFlags
```
Indicates the valid fields of the result.

[XRGeospatialPose.Rotation](https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPose#rotation) and [OrientationYawAccuracy](https://developer.android.com/develop/xr/unity/reference/struct/Google/XR/Extensions/XRGeospatialPoseResult#orientationyawaccuracy) are valid When XrSpaceLocationFlags.OrientationValid is set. Other fields are determined by XrSpaceLocationFlags.PositionValid.

### OrientationYawAccuracy

```c#
double Google::XR::Extensions::XRGeospatialPoseResult::OrientationYawAccuracy
```
The estimated yaw accuracy of the Geospatial pose orientation, defined as the radius in degrees of 68% confidence level around the given orientation.

In other words, there is a 68% chance that the true orientation yaw angle is within this many degrees of the given yaw angle.

### Pose

```c#
XRGeospatialPose Google::XR::Extensions::XRGeospatialPoseResult::Pose
```
The geospatial pose converted from the given Unity pose.

### VerticalAccuracy

```c#
double Google::XR::Extensions::XRGeospatialPoseResult::VerticalAccuracy
```
The estimated vertical accuracy of the Geospatial pose position, defined as the distance in meters of 68% confidence level around the given altitude.

In other words, there is a 68% chance that the true altitude is in range \[Altitude - VerticalAccuracy, Altitude + VerticalAccuracy\].

## Public functions

### Equals

```c#
bool Google::XR::Extensions::XRGeospatialPoseResult::Equals(
  XRGeospatialPoseResult other
)
```