quat_slerp(3alleg4)

✨ NAME ✨

okay bestie, welcome to quat_slerp(3alleg4) from the Allegro manual β€” it's giving Allegro game programming library energy, and this page is literally about quat_slerp.

quat_slerp β€” a version of quat_interpolate() that lets you control the rotation. Part of the Allegro game programming library.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void quat_slerp(const QUAT *from, const QUAT *to, float t, QUAT *out,
       int how);

πŸ’… DESCRIPTION πŸ’…

It's the same as quat_interpolate(), but with extra control over how the rotation is done. The how parameter can be any one of these values:

  • QUAT_SHORT β€” like quat_interpolate(), use shortest path.
  • QUAT_LONG β€” rotation will be greater than 180 degrees.
  • QUAT_CW β€” rotate clockwise when viewed from above.
  • QUAT_CCW β€” rotate counterclockwise when viewed from above.
  • QUAT_USER β€” the quaternions are interpolated exactly as given.

mwah πŸ’‹ that's the whole page, bestie β€” Allegro manual, version 4.4.3, page quat_slerp(3alleg4). That's the footer energy, periodt. πŸ’–βœ¨