ZapGravity

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

Represent the force of gravity that is applied to a device.

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

Force of gravity along the x axis. (m/s²)

Link copied to clipboard
val y: Float

Force of gravity along the y axis. (m/s²)

Link copied to clipboard
val z: Float

Force of gravity 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.