Revision: 54414
http://brlcad.svn.sourceforge.net/brlcad/?rev=54414&view=rev
Author: carlmoore
Date: 2013-02-14 20:31:39 +0000 (Thu, 14 Feb 2013)
Log Message:
-----------
enforce a uniform value of pi by bringing in M_PI
Modified Paths:
--------------
brlcad/trunk/src/proc-db/tube.c
Modified: brlcad/trunk/src/proc-db/tube.c
===================================================================
--- brlcad/trunk/src/proc-db/tube.c 2013-02-14 20:25:44 UTC (rev 54413)
+++ brlcad/trunk/src/proc-db/tube.c 2013-02-14 20:31:39 UTC (rev 54414)
@@ -171,8 +171,8 @@
sample[i][X] = i * spacing;
sample[i][Y] = 0;
sample[i][Z] = 4 * oradius * sin(
- ((double)i*i)/nsamples * 2 * 3.14159265358979323 +
- frame * 3.141592 * 2 / 8);
+ ((double)i*i)/nsamples * 2 * M_PI +
+ frame * M_PI * 2 / 8);
}
projectile_pos = ((double)frame)/nframes *
(sample[nsamples-1][X] - sample[0][X]); /* length */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits