Skip to content

Rotation

Rate of rotation of the device around the x, y and z axes. Typically captured by a gyroscope.

Data type CarpDataTypes.ROTATION.

Inheritance
Annotations

Constructors

Rotation.fromJson

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

Rotation

Rotation({
  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.