namespace Math
{
	const float Epsilon = 1.401298E-45;
	//------------------------------------------------------------------------------------------------------------------------
	// Compares two floating point values if they are similar.
	//------------------------------------------------------------------------------------------------------------------------
	bool Approximately(const float a, const float b)
	{
		return Fabs(b - a) < Max(1E-06f * Max(Fabs(a), Fabs(b)), Epsilon * 8.0f);
	}
	//------------------------------------------------------------------------------------------------------------------------
	// Compares a kVec3 point to a float value if they are similar.
	//------------------------------------------------------------------------------------------------------------------------
	bool Vec3Approximately(kVec3 a, const float b)
	{
		return Approximately(a.x, b) && Approximately(a.y, b) && Approximately(a.z, b);
	}
	//------------------------------------------------------------------------------------------------------------------------
}
