00001 00002 // Maths.h 00003 // Include maths headers 00004 // Downloaded from: www.paulsprojects.net 00005 // Created: 20th July 2002 00006 // Modified: 17th December 2002 - Removed QUATERNION 00007 // 00008 // Copyright (c) 2006, Paul Baker 00009 // Distributed under the New BSD Licence. (See accompanying file License.txt or copy at 00010 // http://www.paulsprojects.net/NewBSDLicense.txt) 00012 #include <cmath> 00013 00014 #define _USE_MATH_DEFINES 00015 00016 //VC++ math.h (and others) do not define M_PI 00017 #ifndef M_PI 00018 #define M_PI 3.14159265358979323846 00019 #endif 00020 00021 //An epsilon value for comparisons 00022 #ifndef EPSILON 00023 #define EPSILON 0.01f 00024 #endif 00025 00026
1.6.1