Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > A

apply_quat

man page of apply_quat

apply_quat: Multiplies a point by a quaternion. Allegro game programming library.

NAME

apply_quat - Multiplies a point by a quaternion. Allegro game programming library.

SYNOPSIS

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

DESCRIPTION

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(). APPLY_QUAT(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 28.57ms.

brauchbar.de | wippsaege.name | adsenseexperts.com