1quat_interpolate(3) Allegro manual quat_interpolate(3)
2
3
4
6 quat_interpolate - Constructs a quaternion representing a rotation
7 between from and to. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void quat_interpolate(const QUAT *from, const QUAT *to, float t, QUAT
14 *out);
15
17 Constructs a quaternion that represents a rotation between from and to.
18 The argument t can be anything between 0 and 1 and represents where
19 between from and to the result will be. 0 returns from, 1 returns to,
20 and 0.5 will return a rotation exactly in between. The result is copied
21 to out. This function will create the short rotation (less than 180
22 degrees) between from and to.
23
24
26 exquat(3)
27
28
29
30Allegro version 4.2.3 quat_interpolate(3)