Class Magnometer
Magnometer 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 Magnometer : IDisposable
Properties
IsStarted
Gets a value indicating whether the magnometer sensor has been started.
Declaration
public bool IsStarted { get; }
Property Value
Type | Description |
---|---|
bool |
MagneticField
Gets the magnetic field vector in microteslas (µ).
Declaration
public Vector3 MagneticField { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
Dispose()
Declaration
public void Dispose()
Start()
Start monitoring for changes to magnometer.
Declaration
public void Start()
Stop()
Stop monitoring for changes to magnometer.
Declaration
public void Stop()