ZapGyroscope

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

Represent a device's rate of rotation.

+-------------+-------------+-------------+
| 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

Rate of rotation around the x axis. (rad/s)

Link copied to clipboard
val y: Float

Rate of rotation around the y axis. (rad/s)

Link copied to clipboard
val z: Float

Rate of rotation around the z axis. (rad/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.