[opengtl-commits] [661] add a min functiono

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 661
Author:   cyrille
Date:     2009-03-18 22:20:14 +0100 (Wed, 18 Mar 2009)

Log Message:
-----------
add a min functiono

Modified Paths:
--------------
    trunk/OpenGTL/OpenShiva/OpenShiva/shivastdlib.shiva


Modified: trunk/OpenGTL/OpenShiva/OpenShiva/shivastdlib.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/shivastdlib.shiva	2009-03-18 21:19:23 UTC (rev 660)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/shivastdlib.shiva	2009-03-18 21:20:14 UTC (rev 661)
@@ -36,4 +36,9 @@
     v *= v;
     return sqrt( v[0] + v[1] );
   }
+  float min(float a, float b)
+  {
+    if( a > b) return b;
+    return a;
+  }
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/