quat_slerp(3alleg4)

quat_slerp3alleg4

Version of quat_interpolate() allowing control over the rotation. allegro game programming library.

Usage

#include <allegro.h>

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

Overview

The same as quat_interpolate(), but allows more control over how the rotation is done. The how parameter can be any one of the 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

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.