# HG changeset patch # User Steve Losh # Date 1471913284 0 # Node ID fcc9fc4cb7c25ccb94745ed3d8cfc30a6d479709 # Parent b6b6000308ea3b7a344cdcf07f4eb4d87cbbb65c Fix typo diff -r b6b6000308ea -r fcc9fc4cb7c2 DOCUMENTATION.markdown --- a/DOCUMENTATION.markdown Tue Aug 23 00:45:49 2016 +0000 +++ b/DOCUMENTATION.markdown Tue Aug 23 00:48:04 2016 +0000 @@ -494,6 +494,18 @@ +### `PRECISE-LERP` (function) + + (PRECISE-LERP FROM TO N) + +Lerp together `from` and `to` by factor `n`, precisely. + + Vanilla lerp does not guarantee `(lerp from to 0.0)` will return exactly + `from` due to floating-point errors. This version will return exactly `from` + when given a `n` of `0.0`, at the cost of an extra multiplication. + + + ### `SQUARE` (function) (SQUARE X) diff -r b6b6000308ea -r fcc9fc4cb7c2 package.lisp --- a/package.lisp Tue Aug 23 00:45:49 2016 +0000 +++ b/package.lisp Tue Aug 23 00:48:04 2016 +0000 @@ -41,7 +41,7 @@ #:dividesp #:norm #:lerp - #:precide-lerp + #:precise-lerp #:map-range #:clamp))