summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-12-13 08:14:41 -0500
committerDavid Thompson <dthompson2@worcester.edu>2018-12-13 08:16:36 -0500
commit627ff41326679665589de5cf984f8eac3d4053a3 (patch)
tree9e82596a64de6f83d248fb744273dc31b6bc212c /doc
parent53c2419a35789fe3d017dabbb46332617208af54 (diff)
math: vector: Add set-vec2! and set-vec3! procedures.
* chickadee/math/vector.scm (set-vec2!, set-vec3!): New procedures. * doc/api.texi (Vectors): Document them.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 02662b7..77f6ae0 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -487,6 +487,11 @@ Set the X coordinate of the 2D vector @var{v} to @var{x}.
Set the Y coordinate of the 2D vector @var{v} to @var{y}.
@end deffn
+@deffn {Procedure} set-vec2! @var{v} @var{x} @var{y}
+Set the X and Y coordinates of the 2D vector @var{v} to @var{x} and
+@var{y}, respectively.
+@end deffn
+
@deffn {Procedure} vec2-copy! @var{source} @var{target}
Copy the 2D vector @var{source} into the 2D vector @var{target}.
@end deffn
@@ -571,6 +576,11 @@ Set the Y coordinate of the 3D vector @var{v} to @var{y}.
Set the Z coordinate of the 3D vector @var{v} to @var{z}.
@end deffn
+@deffn {Procedure} set-vec3! @var{v} @var{x} @var{y} @var{z}
+Set the X, Y, and Z coordinates of the 3D vector @var{v} to @var{x},
+@var{y}, and @var{z}, respectively.
+@end deffn
+
@deffn {Procedure} vec3-copy! @var{source} @var{target}
Copy the 3D vector @var{source} into the 3D vector @var{target}.
@end deffn