Package-level declarations

Core value classes for physical and angular measurements (Length, Area, Rotation, Bearing) with predefined unit definitions (SI, Metric, Imperial, DMS).

Types

Link copied to clipboard

Represents an area, internally stored as a Double of square meters.

Link copied to clipboard
open class AreaUnit(val metersSquaredPerUnit: Double, val symbol: String) : UnitOfMeasure, Comparable<AreaUnit>

Represents a unit of Area measurement.

Link copied to clipboard

Represents an absolute bearing or heading, internally stored as a Rotation from North in the range [0,360) degrees defined in the positive-clockwise direction when viewed from above (axis of rotation is a vector pointing down).

Link copied to clipboard
data object DMS

Degrees, Minutes, Seconds (DMS) angular measurement system.

Link copied to clipboard
data object Earth : World

Earth as a World with standard WGS84-based measurements.

Link copied to clipboard
data object Imperial

British Imperial and US Customary units.

Link copied to clipboard
data object International

The International System of Units (SI).

Link copied to clipboard

Represents a length or distance, internally stored as a Double of meters.

Link copied to clipboard
open class LengthUnit @JvmOverloads constructor(val metersPerUnit: Double, val symbol: String, squaredUnit: AreaUnit? = null) : UnitOfMeasure, Comparable<LengthUnit>

Represents a unit of Length measurement.

Link copied to clipboard
data object Metric

Metric-based units not part of the International System of Units.

Link copied to clipboard

Represents a magnitude of angular displacement, internally stored as a Double of degrees. It may be greater than a full turn (360 degrees).

Link copied to clipboard
open class RotationUnit(val degreesPerUnit: Double, val symbol: String) : UnitOfMeasure, Comparable<RotationUnit>

Represents a unit of Rotation measurement.

Link copied to clipboard
sealed interface UnitOfMeasure

Common interface for all units of measurement.

Link copied to clipboard
abstract class World(val averageRadius: Length)

Base class representing a celestial body with angular units converted to linear distance.