Mercurial > cortex
diff org/util.org @ 108:92b857b6145d
slow implementation of UV-mapped touch is complete
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 15 Jan 2012 04:08:31 -0700 |
parents | 77b506ac64f3 |
children | 9d0fe7f54e14 |
line wrap: on
line diff
1.1 --- a/org/util.org Sun Jan 15 00:40:49 2012 -0700 1.2 +++ b/org/util.org Sun Jan 15 04:08:31 2012 -0700 1.3 @@ -453,6 +453,13 @@ 1.4 Textual 1.5 (text [control] 1.6 (println "...geo..."))) 1.7 + 1.8 +(extend-type Triangle 1.9 + Textual 1.10 + (text [t] 1.11 + (println "Triangle: " \newline (.get1 t) \newline 1.12 + (.get2 t) \newline (.get3 t)))) 1.13 + 1.14 #+end_src 1.15 1.16 Here I make the =Viewable= protocol and extend it to JME's types. Now