]> gitweb.factorcode.org Git - factor.git/commitdiff
inline trilerp so that perlin-noise is pretty much instantaneous
authorJoe Groff <arcata@gmail.com>
Mon, 19 Oct 2009 20:11:59 +0000 (15:11 -0500)
committerJoe Groff <arcata@gmail.com>
Mon, 19 Oct 2009 20:11:59 +0000 (15:11 -0500)
basis/math/vectors/vectors.factor

index 2426e4814b17779ccef0067107e7ae33eb1c6dc7..ee417de12bf224a52171e7f332b68d31eaf8dc0e 100644 (file)
@@ -163,7 +163,7 @@ PRIVATE>
 
 : trilerp ( aaa baa aba bba aab bab abb bbb {t,u,v} -- a_tuv )
     [ first lerp ] [ second lerp ] [ third lerp ] tri-curry
-    [ 2tetra@ ] [ 2bi@ ] [ call ] tri* ;
+    [ 2tetra@ ] [ 2bi@ ] [ call ] tri* ; inline
 
 : bilerp ( aa ba ab bb {t,u} -- a_tu )
     [ first lerp ] [ second lerp ] bi-curry