Orientation

sealed class Orientation

Worker orientation measured in units clockwise from north.

Inheritors

Types

Link copied to clipboard
data class Degrees(val value: Double) : Orientation

Degrees, limited on [0, 360)

Link copied to clipboard

Functions

Link copied to clipboard

Casts this Orientation as a Degrees and retrieves its kotlin.Double value. Throws an exception if the Orientation is not a Degrees.

Link copied to clipboard

Casts this Orientation as a Degrees and retrieves its kotlin.Double value. Returns null if the Orientation is not a Degrees.