summaryrefslogtreecommitdiffstats
blob: bf8f93035ec3d25bd2e6ccdd587aed1a202c1979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (c) 2012 Yoann Blein
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <limits>

namespace Swift {
	bool approximatelyEqual(float a, float b, float epsilon = std::numeric_limits<float>::epsilon());
	bool essentiallyEqual(float a, float b, float epsilon = std::numeric_limits<float>::epsilon());
	bool definitelyGreaterThan(float a, float b, float epsilon = std::numeric_limits<float>::epsilon());
	bool definitelyLessThan(float a, float b, float epsilon = std::numeric_limits<float>::epsilon());
}