Class DeviceMotionAcceleration

java.lang.Object
org.vaadin.firitin.devicemotion.DeviceMotionAcceleration

public class DeviceMotionAcceleration extends Object
Represents the acceleration of a device along three axes (x, y, z). The acceleration excludes the effect of gravity.
Author:
mstahv
  • Constructor Details

    • DeviceMotionAcceleration

      public DeviceMotionAcceleration()
  • Method Details

    • getX

      public Double getX()
      Returns:
      acceleration along the X axis in m/s² (can be null if not available)
    • getY

      public Double getY()
      Returns:
      acceleration along the Y axis in m/s² (can be null if not available)
    • getZ

      public Double getZ()
      Returns:
      acceleration along the Z axis in m/s² (can be null if not available)
    • toString

      public String toString()
      Overrides:
      toString in class Object