ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/visualizer.cpp
(Generate patch)

Comparing trunk/SHAPES/visualizer.cpp (file contents):
Revision 1300 by gezelter, Thu Jun 24 19:06:47 2004 UTC vs.
Revision 1307 by gezelter, Fri Jun 25 18:33:17 2004 UTC

# Line 88 | Line 88 | int main(int argc, char* argv[]){
88  
89          r = sqrt(x*x + y*y + z*z);
90          costheta = z/r;
91 <        phi = atan(y/x);
91 >        phi = atan2(y,x);
92  
93          sigmaShape = shape->getSigmaAt(costheta, phi);
94          sShape = shape->getSAt(costheta, phi);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines