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
Double
t
Represents a numerical value with optional units specified.

Constructors

MeasurementOrValue.double(value)
Creates a variant holding a value of type Double.
Arguments
NameTypeDescription
valueDoubleThe value to store in the variant.
MeasurementOrValue.measurement(value)
Creates a variant holding a value of type Measurement.
Arguments
NameTypeDescription
valueMeasurementThe value to store in the variant.