Skip to content

Acceleration

Change in velocity, including gravity, along perpendicular x, y, and z axes in meters per second squared (m/s^2). Typically captured by an accelerometer.

Data type CarpDataTypes.ACCELERATION.

Inheritance
Annotations

Constructors

Acceleration.fromJson

Acceleration.fromJson(
  1. Map<String, dynamic> json
)

Acceleration

Acceleration({
  1. double x = 0,
  2. double y = 0,
  3. double z = 0,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

x

double x
getter/setter pair

y

double y
getter/setter pair

z

double z
getter/setter pair

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.