Revision: 54486
http://brlcad.svn.sourceforge.net/brlcad/?rev=54486&view=rev
Author: carlmoore
Date: 2013-02-26 18:40:05 +0000 (Tue, 26 Feb 2013)
Log Message:
-----------
use M_SQRT1_2 , and clarify some remarks about use of degrees, not radians
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/ell/ell.c
Modified: brlcad/trunk/src/librt/primitives/ell/ell.c
===================================================================
--- brlcad/trunk/src/librt/primitives/ell/ell.c 2013-02-26 18:16:13 UTC (rev
54485)
+++ brlcad/trunk/src/librt/primitives/ell/ell.c 2013-02-26 18:40:05 UTC (rev
54486)
@@ -639,16 +639,16 @@
{
static fastf_t c, d, e, f, g, h;
- e = h = .92388; /* cos(22.5) */
- c = d = .707107; /* cos(45) */
- g = f = .382683; /* cos(67.5) */
+ e = h = .92388; /* cos(22.5 degrees) */
+ c = d = M_SQRT1_2; /* cos(45 degrees) */
+ g = f = .382683; /* cos(67.5 degrees) */
/*
* For angle theta, compute surface point as
*
* V + cos(theta) * A + sin(theta) * B
*
- * note that sin(theta) is cos(90-theta).
+ * note that sin(theta) is cos(90-theta), with arguments in degrees.
*/
VADD2(ELLOUT(1), V, A);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits