1apply_quat(3)                   Allegro manual                   apply_quat(3)
2
3
4

NAME

6       apply_quat  - Multiplies a point by a quaternion. Allegro game programā€
7       ming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void apply_quat(const QUAT *q, float x, y, z, *xout, *yout, *zout);
14

DESCRIPTION

16       Multiplies the point (x, y, z) by the quaternion q, storing the  result
17       in   (*xout,   *yout,   *zout).   This  is  quite  a  bit  slower  than
18       apply_matrix_f(), so only use it to translate a few points. If you have
19       many  points,  it  is  much more efficient to call quat_to_matrix() and
20       then use apply_matrix_f().
21
22
23
24
25Allegro                          version 4.2.3                   apply_quat(3)
Impressum