summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-08-28 18:59:57 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-08-28 18:59:57 -0400
commit8769f3bc76fa94b458c41b68b85701bd12029974 (patch)
treefdcdeb159f7e2007f9bb5e16a2f789843d50eb03
parentd4774ab5c12fcb5f2358fbc7b2fa162df86a8486 (diff)
transition: Add quaternion support.
* sly/transition.scm (guess-interpolator): Use slerp for quaternions.
-rw-r--r--sly/transition.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sly/transition.scm b/sly/transition.scm
index 4017633..68ec18e 100644
--- a/sly/transition.scm
+++ b/sly/transition.scm
@@ -26,6 +26,7 @@
#:use-module (sly color)
#:use-module (sly coroutine)
#:use-module (sly math)
+ #:use-module (sly quaternion)
#:use-module (sly signal)
#:use-module (sly vector)
#:export (ease-linear
@@ -125,6 +126,8 @@ range [0, 1]."
vector-interpolate)
((both? color?)
color-interpolate)
+ ((both? quaternion?)
+ quaternion-slerp)
(else
(error "Failed to guess interpolator: " a b))))