quat_interpolate(3alleg)

quat_interpolate3alleg

Constructs a quaternion representing a rotation between from and to. allegro game programming library.

Usage

#include <allegro.h>

void quat_interpolate(const QUAT *from, const QUAT *to, float t, QUAT *out);

Overview

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.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.