fuookami.ospf.kotlin.utils.physics.unit.Volume.kt Maven / Gradle / Ivy
package fuookami.ospf.kotlin.utils.physics.unit
import fuookami.ospf.kotlin.utils.physics.dimension.*
data 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
}
data 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
}
data 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
}