ZapMagneticField

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

Represent a ambient geomagnetic field.

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

Geomagnetic field strength along the x axis. (μT)

Link copied to clipboard
val y: Float

Geomagnetic field strength along the y axis. (μT)

Link copied to clipboard
val z: Float

Geomagnetic field strength along the z axis. (μT)

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.