logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

quat_interpolate - Constructs a quaternion representing a rotation between from and to. Allegro game

Description

       Constructs a quaternion that represents a rotation between from and to.  The argument t can  be  anything
       between  0  and  1 and represents where between from and to the result will be. 0 returns from, 1 returns
       to, and 0.5 will return a rotation exactly in between. The result is copied to out.  This  function  will
       create the short rotation (less than 180 degrees) between from and to.

Name

       quat_interpolate  -  Constructs  a  quaternion  representing a rotation between from and to. Allegro game
       programming library.

See Also

exquat(3alleg4)

Allegro                                           version 4.4.3                        quat_interpolate(3alleg4)

Synopsis

#include<allegro.h>voidquat_interpolate(constQUAT*from,constQUAT*to,floatt,QUAT*out);

See Also