apply_quat(3alleg)

apply_quat3alleg

Multiplies a point by a quaternion. allegro game programming library.

Usage

#include <allegro.h>

void apply_quat(const QUAT *q, float x, y, z, *xout, *yout, *zout);

Overview

Multiplies the point (x, y, z) by the quaternion q, storing the result in (*xout, *yout, *zout). This is quite a bit slower than apply_matrix_f(), so only use it to translate a few points. If you have many points, it is much more efficient to call quat_to_matrix() and then use apply_matrix_f().

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.