#ifndef PT_MATRICE_4F_C_H #define PT_MATRICE_4F_C_H #include #include #include #include #include "ptvecteur4fc.h" #ifdef __cplusplus extern "C" { #endif typedef float PtMatrice4fc[16]; void setPtMat4f(PtMatrice4fc mat4f, float x1, float y1, float z1, float t1, float x2, float y2, float z2, float t2, float x3, float y3, float z3, float t3, float x4, float y4, float z4, float t4); void setValueNPtMat4f(PtMatrice4fc mat4f, unsigned int n, float value); void setValueNTestPtMat4f(PtMatrice4fc mat4f, unsigned int n, float value); void setValueIJPtMat4f(PtMatrice4fc mat4f, unsigned int i, unsigned int j, float value); void setValueIJTestPtMat4f(PtMatrice4fc mat4f, unsigned int i, unsigned int j, float value); void fillPtMat4f(PtMatrice4fc mat4fInOut, float value); void loadIdentityPtMat4f(PtMatrice4fc mat4fInOut); void addPtMat4f(PtMatrice4fc mat4fOut, const PtMatrice4fc mat4fIn1, const PtMatrice4fc mat4fIn2); void subPtMat4f(PtMatrice4fc mat4fOut, const PtMatrice4fc mat4fIn1, const PtMatrice4fc mat4fIn2); void multPtMat4fPtMat4f(PtMatrice4fc mat4fOut, const PtMatrice4fc mat4fIn1, const PtMatrice4fc mat4fIn2); void multSelfPtMat4fPtMat4f(PtMatrice4fc mat4fInOut1, const PtMatrice4fc mat4fIn2); void multPtMat4fVect4f(PtVect4fc vect4fOut, const PtMatrice4fc mat4fIn, const PtVect4fc vect4fIn); void setRotationPtMat4fXdeg(PtMatrice4fc mat4InOut, float angledeg); void setRotationPtMat4fXRad(PtMatrice4fc mat4InOut, float anglerad); void setRotationPtMat4fYdeg(PtMatrice4fc mat4InOut, float angledeg); void setRotationPtMat4fYRad(PtMatrice4fc mat4InOut, float anglerad); void setRotationPtMat4fZdeg(PtMatrice4fc mat4InOut, float angledeg); void setRotationPtMat4fZRad(PtMatrice4fc mat4InOut, float anglerad); void setRotationPtMat4fdeg(PtMatrice4fc mat4InOut, float thetaDeg, float phiDeg, float rouliDeg); void setRotationPtMat4fRad(PtMatrice4fc mat4InOut, float thetaRad, float phiRad, float rouliRad); void printPtMat4f(const PtMatrice4fc mat4f); void loadNullPtMat4f(PtMatrice4fc mat4f); void translatedPtMat4f(PtMatrice4fc mat4f, float x, float y, float z); void scalePtMat4f(PtMatrice4fc mat4f, float x, float y, float z); void rotatePtMat4fRad(PtMatrice4fc mat4f, float angleRad, float x, float y, float z); void rotatePtMat4fDeg(PtMatrice4fc mat4f, float angleDeg, float x, float y, float z); void perspectivePtMat4fRad(PtMatrice4fc mat4f, float angleRad, float ratio, float near, float far); void perspectivePtMat4fDeg(PtMatrice4fc mat4f, float angleDeg, float ratio, float near, float far); void lookAtPtMat4f(PtMatrice4fc mat4f, float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ); void lookAtPtMat4fVisee(PtMatrice4fc mat4f, float eyeX, float eyeY, float eyeZ, float viseeX, float viseeY, float viseeZ, float planDroitX, float planDroitY, float planDroitZ, float upX, float upY, float upZ); #ifdef __cplusplus } /* closing brace for extern "C" */ #endif #endif