fuookami.ospf.kotlin.utils.physics.unit.Mass.kt Maven / Gradle / Ivy
package fuookami.ospf.kotlin.utils.physics.unit
import fuookami.ospf.kotlin.utils.math.*
import fuookami.ospf.kotlin.utils.physics.dimension.*
data object Gram : PhysicalUnit() {
override val name: String = "gram"
override val symbol: String = "g"
override val quantity = Mass
override val system = SI
override val scale = Scale(Flt64.ten, -Flt64.three)
}
data object Kilogram : PhysicalUnit() {
override val name: String = "kilogram"
override val symbol: String = "kg"
override val quantity = Mass
override val system = SI
override val scale = Scale()
}
data object Ton : PhysicalUnit() {
override val name: String = "ton"
override val symbol: String = "t"
override val quantity = Mass
override val system = SI
override val scale = Scale(Flt64.ten, Flt64.three)
}