Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ICompassSensor Interface

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    This class represents a sensor of type compass. It measures the angle between the device and the north.

    public interface ICompassSensor : ISensorDevice, IInputDevice
    Name Description
    Properties
    Heading

    Gets the value of north heading, that is the angle (in radian) between the top of the device and north.

    | Improve this Doc View Source

    Properties


    Heading

    Gets the value of north heading, that is the angle (in radian) between the top of the device and north.

    float Heading { get; }
    Property Value
    Type Description
    System.Single

    Inherited Members

    ISensorDevice.IsEnabled
    IInputDevice.Name
    IInputDevice.Id
    IInputDevice.Priority
    IInputDevice.Source
    IInputDevice.Update(List<InputEvent>)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation