亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fixedmath.h

?? 44b0處理器+UCOS操作系統(tǒng)+miniGUI源代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
      return (x < 0) ? -0x7FFFFFFF : 0x7FFFFFFF;   }   else      return ftofix(fixtof(x) / fixtof(y));}/** * \fn int fceil (fixed x) * \brief Rounds a fixed point value to the nearest integer. * * This function rounds the fixed point value \a x to the nearest integer * and returns it. * * \return The rounded integer value. */static inline int fceil (fixed x){   x += 0xFFFF;   if (x >= 0x80000000) {      errno = ERANGE;      return 0x7FFF;   }   return (x >> 16);}/** * \fn fixed itofix (int x) * \brief Converts an integer to a fixed point value. * * This function converts the integer \a x to a fixed point value. * * \sa fixtoi */static inline fixed itofix (int x){    return x << 16;}/** * \fn int fixtoi (fixed x) * \brief Converts an fixed point value to an integer. * * This function converts the fixed point \a x to an integer. * * \sa itofix */static inline int fixtoi (fixed x){    return (x >> 16) + ((x & 0x8000) >> 15);}/** * \fn fixed fcos (fixed x) * \brief Returns the cosine of a fixed point. * * This function returns the cosine of the fixed point \a x,  * where \a x is given in radians. * * \sa facos */static inline fixed fcos (fixed x){   return _cos_tbl[((x + 0x4000) >> 15) & 0x1FF];}/** * \fn fixed fsin (fixed x) * \brief Returns the sine of a fixed point. * * This function returns the sine of the fixed point \a x,  * where \a x is given in radians. * * \sa fasin */static inline fixed fsin (fixed x){    return _cos_tbl[((x - 0x400000 + 0x4000) >> 15) & 0x1FF];}/** * \fn fixed ftan (fixed x) * \brief Returns the tangent of a fixed point. * * This function returns the tangent of the fixed point \a x,  * where \a x is given in radians. * * \sa fcos, fsin */static inline fixed ftan (fixed x){    return _tan_tbl[((x + 0x4000) >> 15) & 0xFF];}/** * \fn fixed facos (fixed x) * \brief Calculates and returns the arc cosine of a fixed point. * * This function calculates the arc cosine of the fixed point \a x;  * that is the value whose cosine is \a x. If \a x falls outside * the range -1 to 1, this function fails and \a errno is set to EDOM. * * \return Returns the arc cosine in radians and the value is mathematically  *         defined to be between 0 and PI (inclusive). * * \sa fcos */static inline fixed facos (fixed x){   if ((x < -65536) || (x > 65536)) {      errno = EDOM;      return 0;   }   return _acos_tbl[(x+65536+127)>>8];}/** * \fn fixed fasin (fixed x) * \brief Calculates and returns the arc sine of a fixed point. * * This function calculates the arc sine of the fixed point \a x;  * that is the value whose sine is \a x. If \a x falls outside * the range -1 to 1, this function fails and \a errno is set to EDOM. * * \return Returns the arc sine in radians and the value is mathematically  *         defined to be between -PI/2 and PI/2 (inclusive). * * \sa fsin */static inline fixed fasin (fixed x){    if ((x < -65536) || (x > 65536)) {      errno = EDOM;      return 0;   }   return 0x00400000 - _acos_tbl[(x+65536+127)>>8];}    /** @} end of fixed_math_fns */#ifdef _MATH_3Dtypedef struct MATRIX            /* transformation matrix (fixed point) */{   fixed v[3][3];                /* scaling and rotation */   fixed t[3];                   /* translation */} MATRIX;typedef struct MATRIX_f          /* transformation matrix (floating point) */{   float v[3][3];                /* scaling and rotation */   float t[3];                   /* translation */} MATRIX_f;extern MATRIX identity_matrix;extern MATRIX_f identity_matrix_f;void get_translation_matrix (MATRIX *m, fixed x, fixed y, fixed z);void get_translation_matrix_f (MATRIX_f *m, float x, float y, float z);void get_scaling_matrix (MATRIX *m, fixed x, fixed y, fixed z);void get_scaling_matrix_f (MATRIX_f *m, float x, float y, float z);void get_x_rotate_matrix (MATRIX *m, fixed r);void get_x_rotate_matrix_f (MATRIX_f *m, float r);void get_y_rotate_matrix (MATRIX *m, fixed r);void get_y_rotate_matrix_f (MATRIX_f *m, float r);void get_z_rotate_matrix (MATRIX *m, fixed r);void get_z_rotate_matrix_f (MATRIX_f *m, float r);void get_rotation_matrix (MATRIX *m, fixed x, fixed y, fixed z);void get_rotation_matrix_f (MATRIX_f *m, float x, float y, float z);void get_align_matrix (MATRIX *m, fixed xfront, fixed yfront, fixed zfront, fixed xup, fixed yup, fixed zup);void get_align_matrix_f (MATRIX_f *m, float xfront, float yfront, float zfront, float xup, float yup, float zup);void get_vector_rotation_matrix (MATRIX *m, fixed x, fixed y, fixed z, fixed a);void get_vector_rotation_matrix_f (MATRIX_f *m, float x, float y, float z, float a);void get_transformation_matrix (MATRIX *m, fixed scale, fixed xrot, fixed yrot, fixed zrot, fixed x, fixed y, fixed z);void get_transformation_matrix_f (MATRIX_f *m, float scale, float xrot, float yrot, float zrot, float x, float y, float z);void get_camera_matrix (MATRIX *m, fixed x, fixed y, fixed z, fixed xfront, fixed yfront, fixed zfront,                 fixed xup, fixed yup, fixed zup, fixed fov, fixed aspect);void get_camera_matrix_f (MATRIX_f *m, float x, float y, float z, float xfront, float yfront, float zfront,                 float xup, float yup, float zup, float fov, float aspect);void qtranslate_matrix (MATRIX *m, fixed x, fixed y, fixed z);void qtranslate_matrix_f (MATRIX_f *m, float x, float y, float z);void qscale_matrix (MATRIX *m, fixed scale);void qscale_matrix_f (MATRIX_f *m, float scale);void matrix_mul (AL_CONST MATRIX *m1, AL_CONST MATRIX *m2, MATRIX *out);void matrix_mul_f (AL_CONST MATRIX_f *m1, AL_CONST MATRIX_f *m2, MATRIX_f *out);fixed vector_length (fixed x, fixed y, fixed z);float vector_length_f (float x, float y, float z);void normalize_vector (fixed *x, fixed *y, fixed *z);void normalize_vector_f (float *x, float *y, float *z);void cross_product (fixed x1, fixed y1, fixed z1, fixed x2, fixed y2, fixed z2, fixed *xout, fixed *yout, fixed *zout);void cross_product_f (float x1, float y1, float z1, float x2, float y2, float z2, float *xout, float *yout, float *zout);fixed polygon_z_normal (AL_CONST V3D *v1, AL_CONST V3D *v2, AL_CONST V3D *v3);float polygon_z_normal_f (AL_CONST V3D_f *v1, AL_CONST V3D_f *v2, AL_CONST V3D_f *v3);void apply_matrix_f (AL_CONST MATRIX_f *m, float x, float y, float z, float *xout, float *yout, float *zout);extern fixed _persp_xscale;extern fixed _persp_yscale;extern fixed _persp_xoffset;extern fixed _persp_yoffset;extern float _persp_xscale_f;extern float _persp_yscale_f;extern float _persp_xoffset_f;extern float _persp_yoffset_f;void set_projection_viewport (int x, int y, int w, int h);typedef struct QUAT{   float w, x, y, z;} QUAT;extern QUAT, identity_quat;void quat_mul (AL_CONST QUAT *p, AL_CONST QUAT *q, QUAT *out)void get_x_rotate_quat (QUAT *q, float r);void get_y_rotate_quat (QUAT *q, float r);void get_z_rotate_quat (QUAT *q, float r);void get_rotation_quat (QUAT *q, float x, float y, float z);void get_vector_rotation_quat (QUAT *q, float x, float y, float z, float a);void quat_to_matrix (AL_CONST QUAT *q, MATRIX_f *m);void matrix_to_quat (AL_CONST MATRIX_f *m, QUAT *q);void apply_quat (AL_CONST QUAT *q, float x, float y, float z, float *xout, float *yout, float *zout);void quat_slerp (AL_CONST QUAT *from, AL_CONST QUAT *to, float t, QUAT *out, int how);#define QUAT_SHORT   0#define QUAT_LONG    1#define QUAT_CW      2#define QUAT_CCW     3#define QUAT_USER    4#define quat_interpolate(from, to, t, out)   quat_slerp((from), (to), (t), (out), QUAT_SHORT)static inline fixed dot_product (fixed x1, fixed y1, fixed z1, fixed x2, fixed y2, fixed z2){   return fmul(x1, x2) + fmul(y1, y2) + fmul(z1, z2);}static inline float dot_product_f (float x1, float y1, float z1, float x2, float y2, float z2){   return (x1 * x2) + (y1 * y2) + (z1 * z2);}#define CALC_ROW(n)     (fmul(x, m->v[n][0]) +        \                         fmul(y, m->v[n][1]) +        \                         fmul(z, m->v[n][2]) +        \                         m->t[n])static inline void apply_matrix (MATRIX *m, fixed x, fixed y, fixed z, fixed *xout, fixed *yout, fixed *zout){   *xout = CALC_ROW(0);   *yout = CALC_ROW(1);   *zout = CALC_ROW(2);}#undef CALC_ROWstatic inline void persp_project (fixed x, fixed y, fixed z, fixed *xout, fixed *yout){   *xout = fmul(fdiv(x, z), _persp_xscale) + _persp_xoffset;   *yout = fmul(fdiv(y, z), _persp_yscale) + _persp_yoffset;}static inline void persp_project_f (float x, float y, float z, float *xout, float *yout){   float z1 = 1.0f / z;   *xout = ((x * z1) * _persp_xscale_f) + _persp_xoffset_f;   *yout = ((y * z1) * _persp_yscale_f) + _persp_yoffset_f;}#endif /* _MATH_3D */    /** @} end of global_fns */    /** @} end of fns */#endif /* _FIXED_MATH *//* Ends C function definitions when using C++ */#ifdef __cplusplus}#endif#endif /* _MGUI_FIXED_MATH_H */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区日韩电影| 国产suv精品一区二区三区| 一区二区国产视频| 中文字幕五月欧美| 亚洲视频中文字幕| 亚洲欧美成人一区二区三区| 亚洲精品一二三区| 亚洲国产综合人成综合网站| 亚洲高清在线精品| 日日欢夜夜爽一区| 久久国产精品免费| 国产麻豆精品在线观看| 国产ts人妖一区二区| 99视频超级精品| 97se亚洲国产综合自在线不卡| 99久久久久久| 欧美网站大全在线观看| 欧美剧情片在线观看| 日韩精品综合一本久道在线视频| 精品国产伦一区二区三区观看方式 | 97成人超碰视| 色噜噜狠狠色综合中国| 欧美精品日韩一本| 久久亚洲欧美国产精品乐播| 欧美国产欧美综合| 樱花影视一区二区| 日韩精品免费专区| 国产永久精品大片wwwapp| 成人av影院在线| 一本色道久久综合狠狠躁的推荐 | 精品对白一区国产伦| 欧美激情综合五月色丁香| 樱桃国产成人精品视频| 日韩成人午夜电影| 国产成人综合在线观看| 色综合天天综合狠狠| 91精品在线观看入口| 国产日韩欧美综合在线| 夜夜揉揉日日人人青青一国产精品| 手机精品视频在线观看| 国产一区二三区好的| 99麻豆久久久国产精品免费 | 国产精品久久久久影院老司| 亚洲午夜久久久久久久久电影院| 久久99热99| bt欧美亚洲午夜电影天堂| 欧美美女喷水视频| 中文字幕精品在线不卡| 五月婷婷激情综合网| 高清视频一区二区| 欧美精品 日韩| 一区精品在线播放| 精品一区二区在线免费观看| 99久久精品免费看国产| 欧美一级精品大片| 亚洲欧洲日韩在线| 久草中文综合在线| 91福利资源站| 国产女人aaa级久久久级| 天堂久久一区二区三区| 不卡av电影在线播放| 91精品国产91久久久久久一区二区 | 一区二区三区四区精品在线视频| 蜜桃精品视频在线| 97se狠狠狠综合亚洲狠狠| 精品乱人伦一区二区三区| 一区二区三区中文字幕在线观看| 国产一区免费电影| 欧美夫妻性生活| 亚洲伦在线观看| 国产凹凸在线观看一区二区| 欧美一级日韩不卡播放免费| 亚洲精品一卡二卡| 成人福利视频在线| 久久久美女毛片| 麻豆久久一区二区| 欧美日本免费一区二区三区| 国产精品久久久久久亚洲伦| 激情成人综合网| 91精品国产综合久久精品app| 中文字幕日韩欧美一区二区三区| 狠狠色丁香久久婷婷综合_中| 欧美中文字幕一区二区三区| 亚洲欧美日韩在线不卡| 成人亚洲精品久久久久软件| 久久蜜臀中文字幕| 久久精品国产在热久久| 欧美一区二区三区免费| 亚洲国产色一区| 欧美在线你懂的| 曰韩精品一区二区| 91蜜桃网址入口| 国产精品国产三级国产普通话蜜臀| 国产一区亚洲一区| 久久久www成人免费无遮挡大片| 麻豆91精品91久久久的内涵| 6080国产精品一区二区| 日韩不卡在线观看日韩不卡视频| 欧美日韩一区二区三区免费看| 亚洲精品亚洲人成人网| 色噜噜夜夜夜综合网| 亚洲老司机在线| 日本福利一区二区| 亚洲一区二区成人在线观看| 色老汉av一区二区三区| 一区二区视频在线看| 色婷婷久久综合| 亚洲综合网站在线观看| 欧美乱妇一区二区三区不卡视频| 亚洲国产wwwccc36天堂| 7777女厕盗摄久久久| 免费在线观看一区二区三区| 日韩女优视频免费观看| 久久99精品国产麻豆婷婷洗澡| 欧美不卡一区二区| 大陆成人av片| 亚洲精品乱码久久久久久日本蜜臀| 91成人看片片| 国产成a人亚洲精| 中文字幕在线不卡一区二区三区| 成人激情文学综合网| 亚洲人成精品久久久久久| 欧美性大战久久久久久久| 婷婷中文字幕综合| ww亚洲ww在线观看国产| 成人深夜在线观看| 亚洲乱码中文字幕综合| 欧美精品精品一区| 国产精品一区2区| 亚洲人吸女人奶水| 欧美精品精品一区| 国产麻豆精品一区二区| 国产精品久久久久aaaa| 欧美怡红院视频| 久久精品久久综合| 国产精品女同互慰在线看 | 国产精品家庭影院| 欧美亚洲高清一区| 日产国产欧美视频一区精品| 久久久久国产精品麻豆| 色狠狠一区二区| 麻豆一区二区三| 亚洲视频一二三| 51精品秘密在线观看| 国产99久久久精品| 亚洲福利视频一区| 久久久久久久一区| 欧美性大战xxxxx久久久| 美女在线视频一区| 亚洲欧洲99久久| 日韩欧美中文字幕制服| 91麻豆成人久久精品二区三区| 午夜精品久久久久久久| 国产清纯美女被跳蛋高潮一区二区久久w| 99久久777色| 久久精品国产成人一区二区三区 | 蜜桃精品在线观看| 自拍偷拍国产精品| www亚洲一区| 欧美日韩国产电影| 99久久免费视频.com| 精品亚洲免费视频| 亚洲一区二区三区免费视频| 久久精品一区二区| 欧美日韩成人综合| 91在线云播放| 国产一区二区三区在线观看精品| 亚洲一区中文日韩| 国产亚洲精品资源在线26u| 在线视频国产一区| 国产美女在线精品| 日本不卡免费在线视频| 一区二区三区欧美亚洲| 国产欧美一区二区精品性| 91精品国产综合久久国产大片| 色综合久久综合网97色综合| 国产精品99久| 久久精品久久久精品美女| 午夜激情一区二区三区| 亚洲欧洲在线观看av| 国产欧美一区二区精品性色超碰| 日韩视频免费观看高清完整版在线观看| 99re成人精品视频| 国产精品一区二区不卡| 久久国产精品一区二区| 日韩制服丝袜先锋影音| 亚洲一区免费观看| 国产精品久久久久久妇女6080 | 亚洲欧美另类在线| 欧美激情一区在线观看| 日韩精品一区二区三区在线观看| 欧美日韩一区二区三区四区| 在线欧美日韩国产| 日本高清不卡在线观看| 91婷婷韩国欧美一区二区| 暴力调教一区二区三区| 国产ts人妖一区二区| 国产xxx精品视频大全| 国产成人免费网站| 懂色av一区二区三区免费观看|