1 /******************************************************************************** 2 * ReactPhysics3D physics library, http://www.reactphysics3d.com * 3 * Copyright (c) 2010-2020 Daniel Chappuis * 4 ********************************************************************************* 5 * * 6 * This software is provided 'as-is', without any express or implied warranty. * 7 * In no event will the authors be held liable for any damages arising from the * 8 * use of this software. * 9 * * 10 * Permission is granted to anyone to use this software for any purpose, * 11 * including commercial applications, and to alter it and redistribute it * 12 * freely, subject to the following restrictions: * 13 * * 14 * 1. The origin of this software must not be misrepresented; you must not claim * 15 * that you wrote the original software. If you use this software in a * 16 * product, an acknowledgment in the product documentation would be * 17 * appreciated but is not required. * 18 * * 19 * 2. Altered source versions must be plainly marked as such, and must not be * 20 * misrepresented as being the original software. * 21 * * 22 * 3. This notice may not be removed or altered from any source distribution. * 23 * * 24 ********************************************************************************/ 25 26 #ifndef REACTPHYSICS3D_DECIMAL_H 27 #define REACTPHYSICS3D_DECIMAL_H 28 29 /// ReactPhysiscs3D namespace 30 namespace reactphysics3d { 31 32 #if defined(IS_RP3D_DOUBLE_PRECISION_ENABLED) // If we are compiling for double precision 33 using decimal = double; 34 #else // If we are compiling for single precision 35 using decimal = float; 36 #endif 37 38 } 39 40 #endif 41 42