--- trunk/SHAPES/visualizer.cpp 2004/06/24 19:06:47 1300 +++ trunk/SHAPES/visualizer.cpp 2004/06/25 18:33:17 1307 @@ -88,7 +88,7 @@ int main(int argc, char* argv[]){ r = sqrt(x*x + y*y + z*z); costheta = z/r; - phi = atan(y/x); + phi = atan2(y,x); sigmaShape = shape->getSigmaAt(costheta, phi); sShape = shape->getSAt(costheta, phi);