00001 00002 // 00003 // Title : MathDefs.h 00004 // Project : OSCAR Version 2.0 00005 // Created : 9/25/1995 00006 // Author : Chetan Kapoor 00007 // Platforms : All 00008 // Copyright : Copyright© The University of Texas at Austin, 2002. All rights reserved. 00009 // 00010 // This software and documentation constitute an unpublished work 00011 // and contain valuable trade secrets and proprietary information 00012 // belonging to the University. None of the foregoing material may be 00013 // copied or duplicated or disclosed without the express, written 00014 // permission of University. THE UNIVERSITY EXPRESSLY DISCLAIMS ANY 00015 // AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, 00016 // INCLUDING ANY WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 00017 // PARTICULAR PURPOSE, AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY 00018 // THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. 00019 // NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF 00020 // THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall the 00021 // University be liable for incidental, special, indirect, direct or 00022 // consequential damages or loss of profits, interruption of business, 00023 // or related expenses which may arise from use of software or documentation, 00024 // including but not limited to those resulting from defects in software 00025 // and/or documentation, or loss or inaccuracy of data of any kind. 00026 // 00027 // Purpose : 00028 // 00029 //----------------------------------------------------------------------------- 00030 // 00031 // $Revisions$ 00032 // 00033 // $Log: MathDefs.h,v $ 00034 // Revision 1.2 2005/03/14 22:04:18 pmarch 00035 // Added to namespace OSCAR and removed "RR" from front of class names. 00036 // 00037 // Revision 1.1 2003/08/18 15:23:36 eswint 00038 // Initial Commit 00039 // 00040 // 00042 #ifndef MathDefines_hpp 00043 #define MathDefines_hpp 00044 00046 namespace OSCAR { 00047 00048 const double PI = 3.14159265358979323846; 00049 const double TWOPI = 2.*PI;//6.28318530718; 00050 const double TwoPI = 2.*PI;//6.28318530718; 00051 00052 #ifndef TRUE 00053 #define TRUE 1 00054 #endif 00055 00056 #ifndef FALSE 00057 #define FALSE 0 00058 #endif 00059 00060 const double RadToDeg = 180./PI; 00061 const double DegToRad = PI/180.; 00062 const double Tiny = 1.0e-20; 00063 const double Epsilon = 0.00001; 00067 const double AngleTolerance = 0.00005; 00068 00069 enum AngleUnits {Radians = 1, Degrees = 2}; 00070 } 00071 #endif // ifndef MathDefines_hpp
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |