Search Results for

    Show / Hide Table of Contents

    Class Compass

    Compass data of the device's orientation relative to Earth's magnetic field.

    Inheritance
    object
    Compass
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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()

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX