API Reference v10.1.0
MeasurementOrValueenum with values
Module: ZaberMotion
A numerical value, or a Measurement.
To use this type, add import ZaberMotion to the top of your source code.
This type is an enum with associated values. Use a switch statement or an if case statement to read the value, for example if case let .double(value) = measurementOrValue { ... }.
Member Types
t
Doublet
Represents a numerical value with optional units specified.
Constructors
MeasurementOrValue.double(value)Creates a variant holding a value of type Double.
Arguments
| Name | Type | Description |
|---|---|---|
| value | Double | The value to store in the variant. |
MeasurementOrValue.measurement(value)Creates a variant holding a value of type Measurement.
Arguments
| Name | Type | Description |
|---|---|---|
| value | Measurement | The value to store in the variant. |