about summary refs log tree commit diff stats
path: root/html/apps/raytracing/vec.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/apps/raytracing/vec.mu.html')
-rw-r--r--html/apps/raytracing/vec.mu.html52
1 files changed, 26 insertions, 26 deletions
diff --git a/html/apps/raytracing/vec.mu.html b/html/apps/raytracing/vec.mu.html
index b3aeb5f0..9b8961c2 100644
--- a/html/apps/raytracing/vec.mu.html
+++ b/html/apps/raytracing/vec.mu.html
@@ -57,14 +57,14 @@ if ('onhashchange' in window) {
 <body onload='JumpToLine();'>
 <a href='https://github.com/akkartik/mu/blob/master/apps/raytracing/vec.mu'>https://github.com/akkartik/mu/blob/master/apps/raytracing/vec.mu</a>
 <pre id='vimCodeElement'>
-<span id="L1" class="LineNr">  1 </span><span class="PreProc">type</span> <a href='vec.mu.html#L1'>vec3</a> <span class="Delimiter">{</span>
+<span id="L1" class="LineNr">  1 </span><span class="PreProc">type</span> vec3 <span class="Delimiter">{</span>
 <span id="L2" class="LineNr">  2 </span>  x: float
 <span id="L3" class="LineNr">  3 </span>  y: float
 <span id="L4" class="LineNr">  4 </span>  z: float
 <span id="L5" class="LineNr">  5 </span><span class="Delimiter">}</span>
 <span id="L6" class="LineNr">  6 </span>
-<span id="L7" class="LineNr">  7 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L7'>print-vec3</a></span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _v: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="Delimiter">{</span>
-<span id="L8" class="LineNr">  8 </span>  <span class="PreProc">var</span> v/<span class="Constant">esi</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> copy _v
+<span id="L7" class="LineNr">  7 </span><span class="PreProc">fn</span> <span class="muFunction">print-vec3</span> <a href='../../405screen.mu.html#L9'>screen</a>: (addr <a href='../../405screen.mu.html#L9'>screen</a>), _v: (addr vec3) <span class="Delimiter">{</span>
+<span id="L8" class="LineNr">  8 </span>  <span class="PreProc">var</span> v/<span class="Constant">esi</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> copy _v
 <span id="L9" class="LineNr">  9 </span>  <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;(&quot;</span>
 <span id="L10" class="LineNr"> 10 </span>  <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> v, x
 <span id="L11" class="LineNr"> 11 </span>  <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp
@@ -77,9 +77,9 @@ if ('onhashchange' in window) {
 <span id="L18" class="LineNr"> 18 </span>  <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">&quot;)&quot;</span>
 <span id="L19" class="LineNr"> 19 </span><span class="Delimiter">}</span>
 <span id="L20" class="LineNr"> 20 </span>
-<span id="L21" class="LineNr"> 21 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L21'>vec3-add-to</a></span> _v1: (addr <a href='vec.mu.html#L1'>vec3</a>), _v2: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="Delimiter">{</span>
-<span id="L22" class="LineNr"> 22 </span>  <span class="PreProc">var</span> v1/<span class="Constant">edi</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> copy _v1
-<span id="L23" class="LineNr"> 23 </span>  <span class="PreProc">var</span> v2/<span class="Constant">esi</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> copy _v2
+<span id="L21" class="LineNr"> 21 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-add-to</span> _v1: (addr vec3), _v2: (addr vec3) <span class="Delimiter">{</span>
+<span id="L22" class="LineNr"> 22 </span>  <span class="PreProc">var</span> v1/<span class="Constant">edi</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> copy _v1
+<span id="L23" class="LineNr"> 23 </span>  <span class="PreProc">var</span> v2/<span class="Constant">esi</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> copy _v2
 <span id="L24" class="LineNr"> 24 </span>  <span class="muComment"># v1.x += v2.x</span>
 <span id="L25" class="LineNr"> 25 </span>  <span class="PreProc">var</span> arg1/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> v1, x
 <span id="L26" class="LineNr"> 26 </span>  <span class="PreProc">var</span> arg2/<span class="Constant">ecx</span>: (addr float) <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> v2, x
@@ -100,22 +100,22 @@ if ('onhashchange' in window) {
 <span id="L41" class="LineNr"> 41 </span>  copy-to *arg1, result
 <span id="L42" class="LineNr"> 42 </span><span class="Delimiter">}</span>
 <span id="L43" class="LineNr"> 43 </span>
-<span id="L44" class="LineNr"> 44 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L44'>vec3-subtract-from</a></span> v1: (addr <a href='vec.mu.html#L1'>vec3</a>), v2: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="Delimiter">{</span>
-<span id="L45" class="LineNr"> 45 </span>  <span class="PreProc">var</span> tmp-storage: <a href='vec.mu.html#L1'>vec3</a>
-<span id="L46" class="LineNr"> 46 </span>  <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> address tmp-storage
+<span id="L44" class="LineNr"> 44 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-subtract-from</span> v1: (addr vec3), v2: (addr vec3) <span class="Delimiter">{</span>
+<span id="L45" class="LineNr"> 45 </span>  <span class="PreProc">var</span> tmp-storage: vec3
+<span id="L46" class="LineNr"> 46 </span>  <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> address tmp-storage
 <span id="L47" class="LineNr"> 47 </span>  copy-object v2, tmp
-<span id="L48" class="LineNr"> 48 </span>  <a href='vec.mu.html#L52'>vec3-negate</a> tmp
-<span id="L49" class="LineNr"> 49 </span>  <a href='vec.mu.html#L21'>vec3-add-to</a> v1, tmp
+<span id="L48" class="LineNr"> 48 </span>  vec3-negate tmp
+<span id="L49" class="LineNr"> 49 </span>  vec3-add-to v1, tmp
 <span id="L50" class="LineNr"> 50 </span><span class="Delimiter">}</span>
 <span id="L51" class="LineNr"> 51 </span>
-<span id="L52" class="LineNr"> 52 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L52'>vec3-negate</a></span> v: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="Delimiter">{</span>
+<span id="L52" class="LineNr"> 52 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-negate</span> v: (addr vec3) <span class="Delimiter">{</span>
 <span id="L53" class="LineNr"> 53 </span>  <span class="PreProc">var</span> negative-one/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">-1</span>
 <span id="L54" class="LineNr"> 54 </span>  <span class="PreProc">var</span> negative-one-f/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> convert negative-one
-<span id="L55" class="LineNr"> 55 </span>  <a href='vec.mu.html#L58'>vec3-scale-up</a> v, negative-one-f
+<span id="L55" class="LineNr"> 55 </span>  vec3-scale-up v, negative-one-f
 <span id="L56" class="LineNr"> 56 </span><span class="Delimiter">}</span>
 <span id="L57" class="LineNr"> 57 </span>
-<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L58'>vec3-scale-up</a></span> _v: (addr <a href='vec.mu.html#L1'>vec3</a>), f: float <span class="Delimiter">{</span>
-<span id="L59" class="LineNr"> 59 </span>  <span class="PreProc">var</span> v/<span class="Constant">edi</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> copy _v
+<span id="L58" class="LineNr"> 58 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-up</span> _v: (addr vec3), f: float <span class="Delimiter">{</span>
+<span id="L59" class="LineNr"> 59 </span>  <span class="PreProc">var</span> v/<span class="Constant">edi</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> copy _v
 <span id="L60" class="LineNr"> 60 </span>  <span class="muComment"># v.x *= f</span>
 <span id="L61" class="LineNr"> 61 </span>  <span class="PreProc">var</span> dest/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> v, x
 <span id="L62" class="LineNr"> 62 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> copy *dest
@@ -133,8 +133,8 @@ if ('onhashchange' in window) {
 <span id="L74" class="LineNr"> 74 </span>  copy-to *dest, result
 <span id="L75" class="LineNr"> 75 </span><span class="Delimiter">}</span>
 <span id="L76" class="LineNr"> 76 </span>
-<span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L77'>vec3-scale-down</a></span> _v: (addr <a href='vec.mu.html#L1'>vec3</a>), f: float <span class="Delimiter">{</span>
-<span id="L78" class="LineNr"> 78 </span>  <span class="PreProc">var</span> v/<span class="Constant">edi</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> copy _v
+<span id="L77" class="LineNr"> 77 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-scale-down</span> _v: (addr vec3), f: float <span class="Delimiter">{</span>
+<span id="L78" class="LineNr"> 78 </span>  <span class="PreProc">var</span> v/<span class="Constant">edi</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> copy _v
 <span id="L79" class="LineNr"> 79 </span>  <span class="muComment"># v.x /= f</span>
 <span id="L80" class="LineNr"> 80 </span>  <span class="PreProc">var</span> dest/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> v, x
 <span id="L81" class="LineNr"> 81 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> copy *dest
@@ -152,23 +152,23 @@ if ('onhashchange' in window) {
 <span id="L93" class="LineNr"> 93 </span>  copy-to *dest, result
 <span id="L94" class="LineNr"> 94 </span><span class="Delimiter">}</span>
 <span id="L95" class="LineNr"> 95 </span>
-<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L96'>vec3-unit</a></span> in: (addr <a href='vec.mu.html#L1'>vec3</a>), out: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="Delimiter">{</span>
-<span id="L97" class="LineNr"> 97 </span>  <span class="PreProc">var</span> len/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> <a href='vec.mu.html#L105'>vec3-length</a> in
+<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-unit</span> in: (addr vec3), out: (addr vec3) <span class="Delimiter">{</span>
+<span id="L97" class="LineNr"> 97 </span>  <span class="PreProc">var</span> len/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> vec3-length in
 <span id="L98" class="LineNr"> 98 </span><span class="CommentedCode">#?   print-string 0, &quot;len: &quot;</span>
 <span id="L99" class="LineNr"> 99 </span><span class="CommentedCode">#?   print-float 0, len</span>
 <span id="L100" class="LineNr">100 </span><span class="CommentedCode">#?   print-string 0, &quot;\n&quot;</span>
 <span id="L101" class="LineNr">101 </span>  copy-object in, out
-<span id="L102" class="LineNr">102 </span>  <a href='vec.mu.html#L77'>vec3-scale-down</a> out, len
+<span id="L102" class="LineNr">102 </span>  vec3-scale-down out, len
 <span id="L103" class="LineNr">103 </span><span class="Delimiter">}</span>
 <span id="L104" class="LineNr">104 </span>
-<span id="L105" class="LineNr">105 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L105'>vec3-length</a></span> v: (addr <a href='vec.mu.html#L1'>vec3</a>)<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
-<span id="L106" class="LineNr">106 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> <a href='vec.mu.html#L111'>vec3-length-squared</a> v
+<span id="L105" class="LineNr">105 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length</span> v: (addr vec3)<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
+<span id="L106" class="LineNr">106 </span>  <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="SpecialChar">&lt;-</span> vec3-length-squared v
 <span id="L107" class="LineNr">107 </span>  result <span class="SpecialChar">&lt;-</span> square-root result
 <span id="L108" class="LineNr">108 </span>  <span class="PreProc">return</span> result
 <span id="L109" class="LineNr">109 </span><span class="Delimiter">}</span>
 <span id="L110" class="LineNr">110 </span>
-<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L111'>vec3-length-squared</a></span> _v: (addr <a href='vec.mu.html#L1'>vec3</a>)<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
-<span id="L112" class="LineNr">112 </span>  <span class="PreProc">var</span> v/<span class="Constant">esi</span>: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="SpecialChar">&lt;-</span> copy _v
+<span id="L111" class="LineNr">111 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-length-squared</span> _v: (addr vec3)<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
+<span id="L112" class="LineNr">112 </span>  <span class="PreProc">var</span> v/<span class="Constant">esi</span>: (addr vec3) <span class="SpecialChar">&lt;-</span> copy _v
 <span id="L113" class="LineNr">113 </span>  <span class="muComment"># result = v.x * v.x</span>
 <span id="L114" class="LineNr">114 </span>  <span class="PreProc">var</span> src/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar">&lt;-</span> <a href='../../131table.subx.html#L26'>get</a> v, x
 <span id="L115" class="LineNr">115 </span>  <span class="PreProc">var</span> tmp/<span class="Constant">xmm1</span>: float <span class="SpecialChar">&lt;-</span> copy *src
@@ -187,10 +187,10 @@ if ('onhashchange' in window) {
 <span id="L128" class="LineNr">128 </span>  <span class="PreProc">return</span> result
 <span id="L129" class="LineNr">129 </span><span class="Delimiter">}</span>
 <span id="L130" class="LineNr">130 </span>
-<span id="L131" class="LineNr">131 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L131'>vec3-dot</a></span> _v1: (addr <a href='vec.mu.html#L1'>vec3</a>), _v2: (addr <a href='vec.mu.html#L1'>vec3</a>)<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
+<span id="L131" class="LineNr">131 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L131'>vec3-dot</a></span> _v1: (addr vec3), _v2: (addr vec3)<span class="PreProc"> -&gt; </span>_/<span class="Constant">xmm0</span>: float <span class="Delimiter">{</span>
 <span id="L132" class="LineNr">132 </span><span class="Delimiter">}</span>
 <span id="L133" class="LineNr">133 </span>
-<span id="L134" class="LineNr">134 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L134'>vec3-cross</a></span> _v1: (addr <a href='vec.mu.html#L1'>vec3</a>), _v2: (addr <a href='vec.mu.html#L1'>vec3</a>), out: (addr <a href='vec.mu.html#L1'>vec3</a>) <span class="Delimiter">{</span>
+<span id="L134" class="LineNr">134 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='vec.mu.html#L134'>vec3-cross</a></span> _v1: (addr vec3), _v2: (addr vec3), out: (addr vec3) <span class="Delimiter">{</span>
 <span id="L135" class="LineNr">135 </span><span class="Delimiter">}</span>
 </pre>
 </body>