From 627ff41326679665589de5cf984f8eac3d4053a3 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 13 Dec 2018 08:14:41 -0500 Subject: 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. --- doc/api.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3