From bf34569ee9a5e33ab53633f172d8f0543e059cad Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 13 Dec 2014 13:34:41 -0500 Subject: math: Update docstring for make-lerp. * sly/math.scm (make-lerp): Update docstring. --- sly/math.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sly/math.scm b/sly/math.scm index 90545ac..0f55671 100644 --- a/sly/math.scm +++ b/sly/math.scm @@ -114,13 +114,13 @@ actually less than MAX." (* x x)) (define (make-lerp + *) - "Return a new procedure that accepts three arguments: A, B, and -ALPHA. The returned procedure uses the procedures + and * to linearly -interpolate a value between A and B. ALPHA should always be in the -range [0, 1]." - (lambda (a b alpha) - (+ (* a (- 1 alpha)) - (* b alpha)))) + "Return a new procedure that accepts three arguments: START, END, +and ALPHA. The returned procedure uses the procedures + and * to +linearly interpolate a value between START and END. ALPHA should +always be in the range [0, 1]." + (lambda (start end alpha) + (+ (* start (- 1 alpha)) + (* end alpha)))) (define lerp (make-lerp + *)) -- cgit v1.2.3