WikiMathConst.h

From Odwiki

Jump to: navigation, search


 /****************************************************************************
           File:  wikiMathConst.h
        Authors:  The od[wiki] community at
                  http://www.odforce.net/wiki
 
    Description:  Mathematical constants.
 
                  Note that some of these are defined in the file
                     $HH/vex/include/math.h
                  The contents of that file, however, are not public.
 
                  These include (and extend) those. They are prefixed with WM_
                  to minimize name clashes, and are 64-bit, in case Houdini
                  goes that way at some point in the future user posted image
                  Having them here also keeps everything self-contained and
                  portable.
 
 -----------------------------------------------------------------------------
    Part of the small but growing od[wiki] library of VEX functions...
    This software is placed in the public domain and is provided as is
    without express or implied warranty.
 *****************************************************************************/
 
 
 
 #ifndef wikiMathConst_h__GUARD
 #define wikiMathConst_h__GUARD
 
 
 
 //----------------------------------------------------------------------------
 // The usual suspects...
 //----------------------------------------------------------------------------
 
 #define WM_E            2.7182818284590452354   // e
 #define WM_LOG2E        1.4426950408889634074   // log_2 e
 #define WM_LOG10E       0.43429448190325182765  // log_10 e
 #define WM_LN2          0.69314718055994530942  // log_e 2
 #define WM_LN10         2.30258509299404568402  // log_e 10
 #define WM_PI           3.14159265358979323846  // pi
 #define WM_PI2          6.28318530717958647692  // pi*2
 #define WM_PI_2         1.57079632679489661923  // pi/2
 #define WM_PI_4         0.78539816339744830962  // pi/4
 #define WM_1_PI         0.31830988618379067154  // 1/pi
 #define WM_2_PI         0.63661977236758134308  // 2/pi
 #define WM_SQRTPI       1.77245385090551602729  // sqrt(pi)
 #define WM_2_SQRTPI     1.12837916709551257390  // 2/sqrt(pi)
 #define WM_SQRT2        1.41421356237309504880  // sqrt(2)
 #define WM_1_SQRT2      0.70710678118654752440  // 1/sqrt(2)
 #define WM_SQRT3        1.73205080756887729353  // sqrt(3)
 
 
 
 #endif // End wikiMathConst_h__GUARD
© 2009 od[force].net | advertise