Class Compass
Compass data of the device's orientation relative to Earth's magnetic field.
Implements
Inherited Members
Namespace: Evergine.Platform
Assembly: Evergine.Platform.dll
Syntax
public class Compass : IDisposable
Properties
HeadingMagneticNorth
Gets the heading (measured in radians) relative to magnetic north.
Declaration
public float HeadingMagneticNorth { get; }
Property Value
Type | Description |
---|---|
float |
IsStarted
Gets a value indicating whether the compass sensor has been started.
Declaration
public bool IsStarted { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Dispose()
Declaration
public void Dispose()
Start()
Start monitoring for changes to compass.
Declaration
public void Start()
Stop()
Stop monitoring for changes to compass.
Declaration
public void Stop()