API Reference 0.5.1+4rikulo_accelerometerAcceleration

Acceleration class

The acecleration information. When a device lying flat on a table and facing up, the value is x = 0, y = 0, and z = 9.81 (one gravity in meter/sec^2)

class Acceleration {
 final num x;
 final num y;
 final num z;
 final int timestamp;

 Acceleration.fromProxy(js.Proxy p)
     : this.x = p.x,
       this.y = p.y,
       this.z = p.z,
       this.timestamp = p.timestamp;

 String toString() => "($timestamp: $x, $y, $z)";
}

Constructors

new Acceleration.fromProxy(Proxy p) #

Acceleration.fromProxy(js.Proxy p)
   : this.x = p.x,
     this.y = p.y,
     this.z = p.z,
     this.timestamp = p.timestamp;

Properties

final int timestamp #

final int timestamp

final num x #

final num x

final num y #

final num y

final num z #

final num z

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => "($timestamp: $x, $y, $z)";