Revision: 54488
http://brlcad.svn.sourceforge.net/brlcad/?rev=54488&view=rev
Author: carlmoore
Date: 2013-02-26 19:23:25 +0000 (Tue, 26 Feb 2013)
Log Message:
-----------
use M_SQRT1_2, and clarify some comments about use of degrees, not radians
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/superell/superell.c
Modified: brlcad/trunk/src/librt/primitives/superell/superell.c
===================================================================
--- brlcad/trunk/src/librt/primitives/superell/superell.c 2013-02-26
18:43:31 UTC (rev 54487)
+++ brlcad/trunk/src/librt/primitives/superell/superell.c 2013-02-26
19:23:25 UTC (rev 54488)
@@ -666,16 +666,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); arguments in degrees.
*/
VADD2(SUPERELLOUT(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