Revision: 56137
http://sourceforge.net/p/brlcad/code/56137
Author: brlcad
Date: 2013-07-19 19:51:35 +0000 (Fri, 19 Jul 2013)
Log Message:
-----------
apply sf patch #209 providing descriptions of the macro parameters
Modified Paths:
--------------
brlcad/trunk/include/bn.h
Modified: brlcad/trunk/include/bn.h
===================================================================
--- brlcad/trunk/include/bn.h 2013-07-19 19:38:29 UTC (rev 56136)
+++ brlcad/trunk/include/bn.h 2013-07-19 19:51:35 UTC (rev 56137)
@@ -2993,6 +2993,9 @@
/**
* random numbers between the closed interval -0.5 to 0.5 inclusive,
* except when benchmark flag is set, when this becomes a constant 0.0
+ *
+ * @param _p float pointer type initialized by bn_rand_init()
+ *
*/
#define bn_rand_half(_p) \
((++(_p) >= &bn_rand_halftab[bn_randhalftabsize] || \
@@ -3001,6 +3004,11 @@
/**
* initialize the seed for the large random number table (halftab)
+ *
+ * @param _p float pointer to be initialized, used for bn_rand0to1()
+ * and bn_rand_half()
+ * @param _seed Integer SEED for offset in the table.
+ *
*/
#define bn_rand_init(_p, _seed) \
(_p) = &bn_rand_halftab[ \
@@ -3011,6 +3019,9 @@
/**
* random numbers in the closed interval 0.0 to 1.0 range (inclusive)
* except when benchmarking, when this is always 0.5
+ *
+ * @param _q float pointer type initialized by bn_rand_init()
+ *
*/
#define bn_rand0to1(_q) (bn_rand_half(_q)+0.5)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits