Problems with PI
-
So I've got a DirectX Project that rotates some polys around. My problem is that I get compile errors saying
PI
is an undeclared indentifier. I've got the#include cmath
statement ( BTW anyone know how to get the <> brackets to show up in code statements? ) and if I hover the cursor over aPI
anywhere I get a tooltip "#define PI 3.14159...." Any idea what the problem is? The question "Do computers think?" is the same as "Can submarines swim?" DragonFire Software Jeryth -
So I've got a DirectX Project that rotates some polys around. My problem is that I get compile errors saying
PI
is an undeclared indentifier. I've got the#include cmath
statement ( BTW anyone know how to get the <> brackets to show up in code statements? ) and if I hover the cursor over aPI
anywhere I get a tooltip "#define PI 3.14159...." Any idea what the problem is? The question "Do computers think?" is the same as "Can submarines swim?" DragonFire Software JerythNot sure why your code won't compile. However, how about using this expression for defining pi? const double PI = 4 * atan(1.0); Kevin
-
Not sure why your code won't compile. However, how about using this expression for defining pi? const double PI = 4 * atan(1.0); Kevin
And to get the bracets show in these messages, use their HTML escape sequence codes. For > it is "& + gt;" and for < it is "& + lt;" (Remove the + sign, the quotes and write the entire sequence togeter in order to actual display it) -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.