64 return value * 1.8 - 459.67;
70 out << temp.
value <<
"K";
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
double toFahrenheit() const
static Temperature fromCelsius(double _value)
constexpr Temperature(double _value=0.0)
Explicit constructor assigning a value.
double value
Temperature in Kelvin.
static Temperature fromFahrenheit(double _value)
static Temperature fromKelvin(double _value)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
static std::ostream & operator<<(std::ostream &os, const DummyMatRegContainer &d)