/* * Copyright (c) 2012 Yoann Blein * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include namespace Swift { bool approximatelyEqual(float a, float b, float epsilon = std::numeric_limits::epsilon()); bool essentiallyEqual(float a, float b, float epsilon = std::numeric_limits::epsilon()); bool definitelyGreaterThan(float a, float b, float epsilon = std::numeric_limits::epsilon()); bool definitelyLessThan(float a, float b, float epsilon = std::numeric_limits::epsilon()); }