MeasurementUnits

data class MeasurementUnits(val temperature: UnitTemperature, val temperatureDelta: UnitTemperature, val speed: UnitSpeed, val distance: UnitLength, val snowfall: UnitLength, val precipitationRate: UnitLength, val rate: UnitSpeed, val intensity: UnitRadarReflectivity, val concentration: UnitConcentrationMass, val ratio: UnitProportion, val duration: UnitDuration, val height: UnitHeight, val none: Dimension, val heightDifference: UnitHeightDifference)

Describes the unit set used to format map/legend values across various measurement types.

This class holds specific unit instances (like UnitTemperature.celsius) for each measurement category. The 'metric' and 'imperial' companion objects provide pre-configured sets.

Constructors

Link copied to clipboard
constructor(temperature: UnitTemperature, temperatureDelta: UnitTemperature, speed: UnitSpeed, distance: UnitLength, snowfall: UnitLength, precipitationRate: UnitLength, rate: UnitSpeed, intensity: UnitRadarReflectivity, concentration: UnitConcentrationMass, ratio: UnitProportion, duration: UnitDuration, height: UnitHeight, none: Dimension, heightDifference: UnitHeightDifference)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Defines the category of measurement, such as temperature, speed, or distance. This allows the system to know what kind of unit to look up.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the unit-convertable Dimension instance associated with the requested measurement category.

Link copied to clipboard

Returns the unit-convertable Dimension configured for the requested measurement, cast to the desired type.