summaryrefslogtreecommitdiff
path: root/manuals/chickadee/Vectors.html
diff options
context:
space:
mode:
Diffstat (limited to 'manuals/chickadee/Vectors.html')
-rw-r--r--manuals/chickadee/Vectors.html44
1 files changed, 22 insertions, 22 deletions
diff --git a/manuals/chickadee/Vectors.html b/manuals/chickadee/Vectors.html
index d11bfc6..8761fe9 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-2021 David Thompson davet@gnu.org
+<!-- Copyright (C) 2017-2023 David Thompson dthompson2@worcester.edu
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
@@ -17,25 +17,25 @@ Foundation Web site at http://www.gnu.org/licenses/fdl.html.
The document was typeset with
http://www.texinfo.org/ (GNU Texinfo).
- -->
-<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
+ -->
+<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vectors (The Chickadee Game Toolkit)</title>
-<meta name="description" content="Vectors (The Chickadee Game Toolkit)">
-<meta name="keywords" content="Vectors (The Chickadee Game Toolkit)">
-<meta name="resource-type" content="document">
-<meta name="distribution" content="global">
-<meta name="Generator" content="makeinfo">
-<link href="index.html" rel="start" title="Top">
-<link href="Index.html" rel="index" title="Index">
-<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
-<link href="Math.html" rel="up" title="Math">
-<link href="Rectangles.html" rel="next" title="Rectangles">
-<link href="Basics.html" rel="prev" title="Basics">
+<meta name="description" content="Vectors (The Chickadee Game Toolkit)" />
+<meta name="keywords" content="Vectors (The Chickadee Game Toolkit)" />
+<meta name="resource-type" content="document" />
+<meta name="distribution" content="global" />
+<meta name="Generator" content="makeinfo" />
+<link href="index.html" rel="start" title="Top" />
+<link href="Index.html" rel="index" title="Index" />
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents" />
+<link href="Math.html" rel="up" title="Math" />
+<link href="Rectangles.html" rel="next" title="Rectangles" />
+<link href="Basics.html" rel="prev" title="Basics" />
<style type="text/css">
-<!--
+&lt;!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
@@ -72,9 +72,9 @@ ul.no-bullet {list-style: none}
}
}
--->
+--&gt;
</style>
-<link rel="stylesheet" type="text/css" href="https://dthompson.us/css/dthompson.css">
+<link rel="stylesheet" type="text/css" href="https://dthompson.us/css/dthompson.css" />
</head>
@@ -84,7 +84,7 @@ ul.no-bullet {list-style: none}
<p>
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>
+<hr />
<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
@@ -96,8 +96,8 @@ release.
</p>
<p>Here&rsquo;s a quick example of adding two vectors:
</p>
-<div class="example">
-<pre class="example">(define v (vec2+ (vec2 1 2) (vec2 3 4)))
+<div class="lisp">
+<pre class="lisp"><span class="syntax-open">(</span><span class="syntax-special">define</span> <span class="syntax-symbol">v</span> <span class="syntax-open">(</span><span class="syntax-symbol">vec2+</span> <span class="syntax-open">(</span><span class="syntax-symbol">vec2</span> <span class="syntax-symbol">1</span> <span class="syntax-symbol">2</span><span class="syntax-close">)</span> <span class="syntax-open">(</span><span class="syntax-symbol">vec2</span> <span class="syntax-symbol">3</span> <span class="syntax-symbol">4</span><span class="syntax-close">)</span><span class="syntax-close">)</span><span class="syntax-close">)</span>
</pre></div>
<p><em>A Note About Performance</em>
@@ -339,7 +339,7 @@ multiplying it by <var>x</var>, a 3D vector or a scalar.
store the result in <var>dest</var>.
</p></dd></dl>
-<hr>
+<hr />
<div class="header">
<p>
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>