AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
vector3f.h
1 
21 #ifndef _AVRIO_VECTOR3F_H_
22 #define _AVRIO_VECTOR3F_H_
23 
24 #include <avrio/defs.h>
25 
26 __BEGIN_C_DECLS
27 /* ========================================================================== */
28 
38 /* constants ================================================================ */
39 #define roll 0
40 #define pitch 1
41 #define yaw 2
42 
43 /* internal public functions ================================================ */
50 void vVector3fCross (float * xOut, const float * xIn1, const float * xIn2);
51 
58 float fVector3fDot (const float * xIn1, const float * xIn2);
59 
65 float fVector3fAbs (const float * xIn1);
66 
71 void vVector3fNormalize (float * xIn1);
72 
77 void vVector3fClear (float * xIn1);
78 
83 bool bVector3fIsCleared (const float * xIn1);
84 
91 bool bVector3fEq (const float * xIn1, const float * xIn2);
92 
98 void vVector3fCopy (float * xDst, const float * xSrc);
99 
106 void vVector3fAdd (float * xOut, const float * xIn1, const float * xIn2);
107 
114 void vVector3fSub (float * xOut, const float * xIn1, const float * xIn2);
115 
122 void vVector3fScale (float * xOut, const float * xIn1, float fConst);
123 
129 void vVector3fMulK (float * xVect, float fConst);
130 
136 void vVector3fDivK (float * xVect, float fConst);
137 
143 __END_C_DECLS
144 /* ========================================================================== */
145 #endif /* _AVRIO_VECTOR3F_H_ not defined */
void vVector3fDivK(float *xVect, float fConst)
Divise un vecteur par une constante.
void vVector3fSub(float *xOut, const float *xIn1, const float *xIn2)
Soustraction de 2 vecteurs.
bool bVector3fEq(const float *xIn1, const float *xIn2)
Egalité de 2 vecteurs.
void vVector3fNormalize(float *xIn1)
Normalisation d&#39;un vecteur.
void vVector3fMulK(float *xVect, float fConst)
Multiplie un vecteur par une constante.
void vVector3fCross(float *xOut, const float *xIn1, const float *xIn2)
Produit vectoriel de 2 vecteurs.
void vVector3fCopy(float *xDst, const float *xSrc)
Copie d&#39;un vecteur dans un autre.
bool bVector3fIsCleared(const float *xIn1)
Test si un vecteur est nul.
float fVector3fDot(const float *xIn1, const float *xIn2)
Produit scalaire de 2 vecteurs.
float fVector3fAbs(const float *xIn1)
Norme d&#39;un vecteur.
void vVector3fScale(float *xOut, const float *xIn1, float fConst)
Multiplie un vecteur par une constante.
void vVector3fAdd(float *xOut, const float *xIn1, const float *xIn2)
Addition de 2 vecteurs.
void vVector3fClear(float *xIn1)
Remise à zéro d&#39;un vecteur.