Search Results for

    Show / Hide Table of Contents

    Class Gyroscope

    Gyroscope data of the rotation around the device's three primary axis.

    Inheritance
    object
    Gyroscope
    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 Gyroscope : IDisposable

    Properties

    AngularVelocity

    Gets the angular velocity vector in radians per second.

    Declaration
    public Vector3 AngularVelocity { get; }
    Property Value
    Type Description
    Vector3
    Remarks

    The coordinate-system is defined relative to the screen of the device in its default orientation. The axes are not swapped when the device's screen orientation changes. The X axis represents the pitch, the Y axis is vertical and represents the yaw and the Z axis represents the roll.

    IsStarted

    Gets a value indicating whether the gyroscope 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 gyroscope.

    Declaration
    public void Start()

    Stop()

    Stop monitoring for changes to gyroscope.

    Declaration
    public void Stop()

    Implements

    IDisposable

    Extension Methods

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