From f16fed3d50fd3d56deb46a3d4641a81460e389de Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 12 Dec 2018 09:20:10 -0500 Subject: Update Chickadee manual and home page for 0.3.0. Better late than never! --- manuals/chickadee/Quaternions.html | 146 +++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 manuals/chickadee/Quaternions.html (limited to 'manuals/chickadee/Quaternions.html') diff --git a/manuals/chickadee/Quaternions.html b/manuals/chickadee/Quaternions.html new file mode 100644 index 0000000..de4c8e4 --- /dev/null +++ b/manuals/chickadee/Quaternions.html @@ -0,0 +1,146 @@ + + + + + + +Quaternions (The Chickadee Game Toolkit) + + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Math   [Contents][Index]

+
+
+ +

2.2.6 Quaternions

+ +

In game development, the quaternion is most often used to represent +rotations. Why not use a matrix for that, you may ask. Unlike +matrices, quaternions can be interpolated (animated) and produce a +meaningful result. When interpolating two quaternions, there is a +smooth transition from one rotation to another, whereas interpolating +two matrices would yield garbage. +

+
+
Procedure: quaternion x y z w
+

Return a new quaternion with values x, y, z, and +w. +

+ +
+
Procedure: quaternion? obj
+

Return #t if obj is a quaternion. +

+ +
+
Procedure: quaternion-w q
+

Return the W component of the quaternion q. +

+ +
+
Procedure: quaternion-x q
+

Return the X component of the quaternion q. +

+ +
+
Procedure: quaternion-y q
+

Return the Y component of the quaternion q. +

+ +
+
Procedure: quaternion-z q
+

Return the Z component of the quaternion q. +

+ +
+
Procedure: make-identity-quaternion
+

Return the identity quaternion. +

+ + + + + + -- cgit v1.2.3