summaryrefslogtreecommitdiff
path: root/manuals/chickadee/Vectors.html
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-10-07 20:17:50 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-10-07 20:17:50 -0400
commit0e699be281c8dea53e589e08a5831837e0eae7ea (patch)
tree4266aebec927b13ca56410be1901e3ee78dff49e /manuals/chickadee/Vectors.html
parent38daa330f2194de5f39cd41b270c89d7b2e94427 (diff)
Updates for Chickadee 0.8.0 and Guile-SDL2 0.7.0.
Diffstat (limited to 'manuals/chickadee/Vectors.html')
-rw-r--r--manuals/chickadee/Vectors.html19
1 files changed, 6 insertions, 13 deletions
diff --git a/manuals/chickadee/Vectors.html b/manuals/chickadee/Vectors.html
index ff07e2f..d11bfc6 100644
--- a/manuals/chickadee/Vectors.html
+++ b/manuals/chickadee/Vectors.html
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
-<!-- Copyright (C) 2017-2020 David Thompson davet@gnu.org
+<!-- Copyright (C) 2017-2021 David Thompson davet@gnu.org
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
@@ -85,7 +85,7 @@ ul.no-bullet {list-style: none}
Next: <a href="Rectangles.html" accesskey="n" rel="next">Rectangles</a>, Previous: <a href="Basics.html" accesskey="p" rel="prev">Basics</a>, Up: <a href="Math.html" accesskey="u" rel="up">Math</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
-<span id="Vectors-1"></span><h4 class="subsection">2.2.2 Vectors</h4>
+<span id="Vectors-1"></span><h4 class="subsection">5.2.2 Vectors</h4>
<p>Unlike Scheme&rsquo;s vector data type, which is a sequence of arbitrary
Scheme objects, Chickadee&rsquo;s <code>(chickadee math vector)</code> module
@@ -100,13 +100,6 @@ release.
<pre class="example">(define v (vec2+ (vec2 1 2) (vec2 3 4)))
</pre></div>
-<p>Since vectors are used so frequently, the reader macro <code>#v</code> is
-used to cut down on typing:
-</p>
-<div class="example">
-<pre class="example">(define v (vec2+ #v(1 2) #v(3 4)))
-</pre></div>
-
<p><em>A Note About Performance</em>
</p>
<p>A lot of time has been spent making Chickadee&rsquo;s vector operations
@@ -119,7 +112,7 @@ order to take advantage of optimizations relating to floating point
math operations. The downside is that since these are not pure
functions, they do not compose well and create more verbose code.
</p>
-<span id="g_t2D-Vectors"></span><h4 class="subsubsection">2.2.2.1 2D Vectors</h4>
+<span id="g_t2D-Vectors"></span><h4 class="subsubsection">5.2.2.1 2D Vectors</h4>
<dl>
<dt id="index-vec2">Procedure: <strong>vec2</strong> <em>x y</em></dt>
@@ -159,7 +152,7 @@ measured in radians.
</p></dd></dl>
<dl>
-<dt id="index-vec2_002ddot_002dproduct">Procedure: <strong>vec2-dot-product</strong> <em>v1 v2</em></dt>
+<dt id="index-vec2_002ddot">Procedure: <strong>vec2-dot</strong> <em>v1 v2</em></dt>
<dd><p>Return the dot product of the 2D vectors <var>v1</var> and <var>v2</var>.
</p></dd></dl>
@@ -225,7 +218,7 @@ subtracting <var>x</var>, a 2D vector or a scalar.
multiplying it by <var>x</var>, a 2D vector or a scalar.
</p></dd></dl>
-<span id="g_t3D-Vectors"></span><h4 class="subsubsection">2.2.2.2 3D Vectors</h4>
+<span id="g_t3D-Vectors"></span><h4 class="subsubsection">5.2.2.2 3D Vectors</h4>
<dl>
<dt id="index-vec3">Procedure: <strong>vec3</strong> <em>x y</em></dt>
@@ -263,7 +256,7 @@ multiplying it by <var>x</var>, a 2D vector or a scalar.
</p></dd></dl>
<dl>
-<dt id="index-vec3_002ddot_002dproduct">Procedure: <strong>vec3-dot-product</strong> <em>v1 v2</em></dt>
+<dt id="index-vec3_002ddot">Procedure: <strong>vec3-dot</strong> <em>v1 v2</em></dt>
<dd><p>Return the dot product of the 3D vectors <var>v1</var> and <var>v2</var>.
</p></dd></dl>