# HG changeset patch # User alexc # Date 1270855787 0 # Node ID 37d97bd9f84d2552090477d628034ce6b47604e5 # Parent 49c6800079b915f4c4a991bd8f2d16c02ea57819 Add M_SQRT2 to the constants in mathematics.h. diff -r 49c6800079b9 -r 37d97bd9f84d mathematics.h --- a/mathematics.h Tue Apr 06 22:31:59 2010 +0000 +++ b/mathematics.h Fri Apr 09 23:29:47 2010 +0000 @@ -44,6 +44,9 @@ #ifndef M_SQRT1_2 #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ #endif +#ifndef M_SQRT2 +#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ +#endif #ifndef NAN #define NAN (0.0/0.0) #endif