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

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

object CubicDecimeter : PhysicalUnit() {
    private val unit = Decimeter * Decimeter * Decimeter

    override val name = "cubic decimeter"
    override val symbol = "dm3"

    override val quantity = Volume
    override val system by unit::system
    override val scale by unit::scale
}

object Liter : PhysicalUnit() {
    private val unit = CubicDecimeter

    override val name = "liter"
    override val symbol = "l"

    override val quantity = Volume
    override val system by unit::system
    override val scale by unit::scale
}

object CubicMeter : PhysicalUnit() {
    private val unit = Meter * Meter * Meter

    override val name = "cubic meter"
    override val symbol = "m3"

    override val quantity = Volume
    override val system by unit::system
    override val scale by unit::scale
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy