ZapAccelerometer

class ZapAccelerometer(val x: Float, val y: Float, val z: Float) : Zapable

Represent values measured by accelerometer sensor.

+-------------+-------------+-------------+
| x (32 bits) | y (32 bits) | z (32 bits) |
+-------------+-------------+-------------+

Constructors

Link copied to clipboard
constructor(x: Float, y: Float, z: Float)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val resource: ZapResource

A resource type of the object.

Link copied to clipboard
val x: Float

Acceleration force along the x axis. (m/s²)

Link copied to clipboard
val y: Float

Acceleration force along the y axis. (m/s²)

Link copied to clipboard
val z: Float

Acceleration force along the z axis. (m/s²)

Functions

Link copied to clipboard
operator fun component1(): Float
Link copied to clipboard
operator fun component2(): Float
Link copied to clipboard
operator fun component3(): Float
Link copied to clipboard
open override fun toPayload(): ZappPayload

Convert Zapable to ZappPayload and return it.