using System;
using MetricFunctions;

namespace MetricFunctions
{

	public class TempFunctions
	{
		// Take two Fahrenheit temperatures and adds
		// Can return the result as Fahrenheit and Centrigrade
		public static double AddTemp(double x, double y, bool convert)
		{
			if (convert == true)
				return MetricConverter.FahrenheitToCentigrade(x + y);
			else
				return x + y;
		}

		// Take two Fahrenheit temperatures and subtracts
		// Can return the result as Fahrenheit and Centrigrade
		public static double SubtractTemp(double x, double y, bool convert)
		{
			if (convert == true)
				return MetricConverter.FahrenheitToCentigrade(x - y);
			else
				return x - y;
		}
	}
}
