AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
quaternionf.h
1 
21 #ifndef _AVRIO_QUATERNIONF_H_
22 #define _AVRIO_QUATERNIONF_H_
23 
24 #include <avrio/defs.h>
25 
26 __BEGIN_C_DECLS
27 /* ========================================================================== */
28 
38 /* structures =============================================================== */
39 typedef struct xQuatf {
40  double a, b, c, d;
41 } xQuatf;
42 
43 /* internal public functions ================================================ */
50 double fQuatfNorm (const xQuatf * xQ);
51 
57 void vQuatfNormalize (xQuatf * xQ);
58 
66 bool bQuatfEq (const xQuatf * xQ1, const xQuatf *xQ2);
67 
74 void vQuatfCopy (xQuatf * xDst, const xQuatf *xSrc);
75 
82 void vQuatfAdd (const xQuatf *xQ1, const xQuatf *xQ2, xQuatf *xQr);
83 
90 void vQuatfSub (const xQuatf *xQ1, const xQuatf *xQ2, xQuatf *xQr);
91 
97 void vQuatfMulK (xQuatf * xQ, double fConst);
98 
104 void vQuatfDivK (xQuatf * xQ, double fConst);
105 
111 __END_C_DECLS
112 /* ========================================================================== */
113 #endif /* _AVRIO_QUATERNIONF_H_ not defined */
void vQuatfMulK(xQuatf *xQ, double fConst)
Multiplie un quaternionf par une constante.
void vQuatfNormalize(xQuatf *xQ)
Normalisation d&#39;un quaternionf.
void vQuatfSub(const xQuatf *xQ1, const xQuatf *xQ2, xQuatf *xQr)
Soustraction de 2 quaternionfs.
double fQuatfNorm(const xQuatf *xQ)
Norme d&#39;un quaternionf.
void vQuatfCopy(xQuatf *xDst, const xQuatf *xSrc)
Copie d&#39;un quaternionf dans un autre.
void vQuatfDivK(xQuatf *xQ, double fConst)
Divise un quaternionf par une constante.
void vQuatfAdd(const xQuatf *xQ1, const xQuatf *xQ2, xQuatf *xQr)
Addition de 2 quaternionfs.
bool bQuatfEq(const xQuatf *xQ1, const xQuatf *xQ2)
Egalité de 2 quaternionfs.