summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2013-07-15 22:37:49 -0400
committerDavid Thompson <dthompson2@worcester.edu>2013-07-15 22:37:49 -0400
commitad2abfb3c9e591c36c8f7937f35e42169ac7462a (patch)
tree598d1131aa441d52a0d4baaaa9a8084593b48fcf
parent0525bcc690cafa10a30e3cf2490e52695a8f7309 (diff)
Add docstring for vector-from-polar.
-rw-r--r--2d/vector.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/2d/vector.scm b/2d/vector.scm
index bd14dd5..a87384c 100644
--- a/2d/vector.scm
+++ b/2d/vector.scm
@@ -82,5 +82,6 @@
(loop (1+ i) (proc prev (vector-ref vector i))))))))
(define (vector-from-polar r theta)
+ "Converts polar coordinates into a cartesian vector."
(vector (* r (cos theta))
(* r (sin theta))))