quat_slerp(3)
β¨ NAME β¨
okay so bestie, this is the quat_slerp(3) page from the Allegro manual π It's literally the version of quat_interpolate() that lets you control the rotation. And yes, it's part of the Allegro game programming library. Periodt.
π¦ SYNOPSIS π¦
here's the exact incantation, no cap:
#include <allegro.h>
void quat_slerp(const QUAT *from, const QUAT *to, float t, QUAT *out,
int how);
π DESCRIPTION π
So this is the same as quat_interpolate(), but it allows more control over how the rotation is done. The how parameter can be any one of these iconic values:
QUAT_SHORTβ likequat_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 π―
Allegro version 4.4.3, quat_slerp(3), and no date in the footer β bye bestie, go rotate something cute ππ¦
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms