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_mul - Multiplies two quaternions. Allegro game programming library.

Description

       Multiplies two quaternions, storing the result in out. The resulting quaternion will have the same effect
       as  the  combination  of  p  and  q, ie.  when applied to a point, (point * out) = ((point * p) * q). Any
       number of rotations can be  concatenated  in  this  way.  Note  that  quaternion  multiplication  is  not
       commutative, ie. quat_mul(p, q) != quat_mul(q, p).

Allegro                                           version 4.4.3                                quat_mul(3alleg4)

Name

       quat_mul - Multiplies two quaternions. Allegro game programming library.

Synopsis

#include<allegro.h>voidquat_mul(constQUAT*p,constQUAT*q,QUAT*out);

See Also