/* Heat.cpp provides the function implementations for Heat, 
 * a library of heat-related constants and functions.
 *
 * Created by: Jane Roe, January, 1997, at Yoyodyne Industries.
 * Modification History: Kelvin functions added April, 1997 -- JR.
 *******************************************************************/

#include "Heat.h"

//---------------------------------------------

double FahrToCelsius(double tempFahr)
{
  return (tempFahr - 32.0) / 1.8;
}

//---------------------------------------------

double CelsiusToFahr(double tempCels)
{
   return tempCels * 1.8 + 32.0;
}

//---------------------------------------------

double KelvinToCelsius(double tempKelv)
{
  return tempKelv - 273.15;
}

//---------------------------------------------

double CelsiusToKelvin(double tempCels)
{
  return tempCels + 273.15;
}

//---------------------------------------------

double FahrToKelvin(double tempFahr)
{
  return (tempFahr - 32.0) / 1.8 + 273.15;
}

//---------------------------------------------

double KelvinToFahr(double tempKelv)
{
  return (tempKelv - 273.15) * 1.8 + 32.0;
}






