Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IOrientationSensor Interface

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

    This class represents a sensor of type Orientation. It measures the orientation of device in the real world.

    public interface IOrientationSensor : ISensorDevice, IInputDevice
    Name Description
    Properties
    Pitch

    Gets the value of the pitch (in radian). The pitch is the rotation around the lateral axis of the device, that is the Ox axis.

    Quaternion

    Gets the quaternion specifying the current rotation of the device.

    Roll

    Gets the value of the roll (in radian). The roll is the rotation around the longitudinal axis of the device, that is the Oy axis.

    RotationMatrix

    Gets the rotation matrix specifying the current rotation of the device.

    Yaw

    Gets the value of the yaw (in radian). The yaw is the rotation around the vertical axis of the device, that is the Oz axis.

    | Improve this Doc View Source

    Properties


    Pitch

    Gets the value of the pitch (in radian). The pitch is the rotation around the lateral axis of the device, that is the Ox axis.

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

    Quaternion

    Gets the quaternion specifying the current rotation of the device.

    Quaternion Quaternion { get; }
    Property Value
    Type Description
    Quaternion

    Roll

    Gets the value of the roll (in radian). The roll is the rotation around the longitudinal axis of the device, that is the Oy axis.

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

    RotationMatrix

    Gets the rotation matrix specifying the current rotation of the device.

    Matrix RotationMatrix { get; }
    Property Value
    Type Description
    Matrix

    Yaw

    Gets the value of the yaw (in radian). The yaw is the rotation around the vertical axis of the device, that is the Oz axis.

    float Yaw { 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