# AHeadingEvent

## Summary

| ### Public attributes ||
|---|---|
| `https://developer.android.com/ndk/reference/struct/a-heading-event#struct_a_heading_event_1a2fe32b7f8ad95090ddafdd65fb12949b` | `float` Accuracy is defined at 68% confidence. |
| `https://developer.android.com/ndk/reference/struct/a-heading-event#struct_a_heading_event_1a1dd02d840a563a5e0a4fc46bce08a8bb` | `float` The direction in which the device is pointing relative to true north in degrees. |

## Public attributes

### accuracy

Declared in `android/sensor.h`

```text
float AHeadingEvent::accuracy
```
Accuracy is defined at 68% confidence.

In the case where the underlying distribution is assumed Gaussian normal, this would be considered one standard deviation. For example, if the heading returns 60 degrees, and accuracy returns 10 degrees, then there is a 68 percent probability of the true heading being between 50 degrees and 70 degrees.

### heading

Declared in `android/sensor.h`

```text
float AHeadingEvent::heading
```
The direction in which the device is pointing relative to true north in degrees.

The value must be between 0.0 (inclusive) and 360.0 (exclusive), with 0 indicating north, 90 east, 180 south, and 270 west.