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

commonMain.io.nacular.measured.units2.Temperature.kt Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
//package io.nacular.measured.units2
//
///**
// * Created by Nicholas Eddy on 8/12/20.
// */
//open class Temperature(suffix: String, toBase: () -> Double): Units(suffix, toBase) {
//    constructor(suffix: String, ratio: Double = 1.0): this(suffix, { ratio })
//
//    operator fun div(other: Time) = toBase() / other.toBase()
//
//    companion object {
//        val celcius    = Temperature("°C")
//        val fahrenheit = Time("°F") {
//            1.0
//        }
//    }
//}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy