00001 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 00002 /* _______ ______ ______ __ */ 00003 /* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ / ____(_)___ / ___ /) / ____/___ ____/ /__ */ 00004 /* [fsConst] / /_ / / __ \\__ \|/ / / / __ \/ __ / _ \ */ 00005 /* rev. 2 / __/ / / /_/ /__/ / / /___/ /_/ / /_/ / __/ */ 00006 /* 20th Jan 2007 /_/ /_/ ,___/____/ \____/\____/\__,_/\___/ */ 00007 /* [x] stable /_/ (c) 2006-7 Filip STOKLAS (FipS) */ 00008 /* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ http://HOLE.4FipS.com/fips_code.php */ 00009 /* */ 00010 /* This code is free for personal and commercial use. You may redistribute */ 00011 /* it by any means. If you use the code for your own projects please give */ 00012 /* me credit. Please send a bug report. Don't alter or remove this header! */ 00013 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 00014 #ifndef FS_MTH_FSCONST_H 00015 #define FS_MTH_FSCONST_H 00016 //--------------------------------------------------------------------------- 00017 #if defined(FS_INCLUDE_USERDEFS) // inject user definition file on request 00018 # include <fs/fsUserDefs.h> 00019 #endif 00020 //--------------------------------------------------------------------------- 00021 namespace fs { namespace mth { 00022 //--------------------------------------------------------------------------- 00023 const float EPS = 1.192092896e-07f; 00024 const float PI = 3.14159265358979323846f; 00025 const float PI360 = 2.0f * PI; 00026 const float PI90 = .5f * PI; 00027 const float PI45 = .25f * PI; 00028 const float DEG2RAD = PI / 180.0f; 00029 const float RAD2DEG = 180.0f / PI; 00030 //--------------------------------------------------------------------------- 00031 }} // namespace fs::mth 00032 //--------------------------------------------------------------------------- 00033 #endif // FS_MTH_FSCONST_H