All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fuookami.ospf.kotlin.utils.physics.unit.UnitSystem.kt Maven / Gradle / Ivy

There is a newer version: 1.0.29
Show newest version
package fuookami.ospf.kotlin.utils.physics.unit

import fuookami.ospf.kotlin.utils.math.*
import fuookami.ospf.kotlin.utils.physics.dimension.*

interface UnitSystem {
    val name: String

    val scales: Map
}

data object SI : UnitSystem {
    override val name: String = "SI"

    override val scales: Map by lazy {
        FundamentalQuantityDimension.entries.associateWith { Scale() }
    }

    override fun toString(): String {
        return name
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy