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

fuookami.ospf.kotlin.utils.physics.unit.Length.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.*

data object Millimeter : PhysicalUnit() {
    override val name = "millimeter"
    override val symbol = "mm"

    override val quantity = Length
    override val system = SI
    override val scale = Scale(Flt64.ten, -Flt64.three)
}

data object Centimeter : PhysicalUnit() {
    override val name = "centimeter"
    override val symbol = "cm"

    override val quantity = Length
    override val system = SI
    override val scale = Scale(Flt64.ten, -Flt64.two)
}

data object Decimeter : PhysicalUnit() {
    override val name = "decimeter"
    override val symbol = "dm"

    override val quantity = Length
    override val system = SI
    override val scale = Scale(Flt64.ten, -Flt64.one)
}

data object Meter : PhysicalUnit() {
    override val name = "meter"
    override val symbol = "m"

    override val quantity = Length
    override val system = SI
    override val scale = Scale()
}

data object Kilometer : PhysicalUnit() {
    override val name = "kilometer"
    override val symbol = "km"

    override val quantity = Length
    override val system = SI
    override val scale = Scale(Flt64.ten, Flt64.three)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy