Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • activateMotionSensor(): void
  • Activate the motion sensor

    Returns void

  • deactivateMotionSensor(): void
  • Deactivate the motion sensor

    Returns void

  • getAccelerationX(): number
  • Get the acceleration value on the X-axis as a number

    Returns number

    Acceleration on the X-axis

  • getAccelerationY(): number
  • Get the acceleration value on the Y-axis as a number

    Returns number

    Acceleration on the Y-axis

  • getAccelerationZ(): number
  • Get the acceleration value on the Z-axis as a number

    Returns number

    Acceleration on the Z-axis

  • getRotationAlpha(): number
  • Get the alpha rotation rate as a number

    Returns number

    The rotation alpha value

  • getRotationBeta(): number
  • Get the beta rotation rate as a number

    Returns number

    The rotation beta value

  • getRotationGamma(): number
  • Get the gamma rotation rate as a number

    Returns number

    The rotation gamma value

  • isActive(): boolean
  • Check if the motion sensor is currently active

    Returns boolean

    The activation state of the motion sensor

Generated using TypeDoc