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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fixedmath.h

?? minigui實例源代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
static inline fixed fdiv (fixed x, fixed y){   if (y == 0) {      errno = ERANGE;      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 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区久久| 精品系列免费在线观看| 99国产精品国产精品毛片| 国产日韩综合av| 成人手机电影网| 亚洲少妇中出一区| 在线观看精品一区| 天天综合网天天综合色| 欧美成人综合网站| 国产69精品久久777的优势| 亚洲少妇屁股交4| 欧美日韩成人一区| 国产精品一线二线三线| 亚洲人精品午夜| 欧美精品18+| 国产福利一区二区三区视频| 亚洲久草在线视频| 日韩网站在线看片你懂的| 国产91在线观看丝袜| 一区二区三区高清在线| 日韩女同互慰一区二区| 99久久免费国产| 日本在线不卡视频一二三区| 久久综合av免费| 99re视频这里只有精品| 日韩高清在线一区| 欧美高清在线一区二区| 欧美午夜精品久久久久久超碰| 久久激五月天综合精品| 亚洲欧美日韩国产另类专区| 在线播放91灌醉迷j高跟美女| 国产成人午夜精品5599| 午夜一区二区三区视频| 国产午夜亚洲精品不卡| 欧美日韩午夜在线| 成人一区二区三区在线观看| 丝袜诱惑制服诱惑色一区在线观看| 精品999久久久| 欧美亚洲愉拍一区二区| 国产寡妇亲子伦一区二区| 亚洲成人免费看| 日本一区二区三区电影| 69av一区二区三区| 91碰在线视频| 国产精品亚洲专一区二区三区 | 日韩av电影免费观看高清完整版| 国产亚洲精品7777| 91精品免费在线| 一本色道综合亚洲| 国产精品123| 欧美aaa在线| 亚洲成av人片www| 中文字幕制服丝袜成人av | 黄一区二区三区| 亚洲国产成人av网| 亚洲三级视频在线观看| 国产农村妇女精品| 欧美变态口味重另类| 欧美日韩一区国产| 91香蕉视频在线| 国产精品91一区二区| 老司机免费视频一区二区 | 久久av资源站| 日韩二区三区在线观看| 亚洲一区在线看| 亚洲欧美日韩国产中文在线| 亚洲欧洲一区二区在线播放| 国产人久久人人人人爽| 久久久久国产精品免费免费搜索| 91麻豆精品国产自产在线| 欧美三级日韩三级| 日本伦理一区二区| 色狠狠av一区二区三区| 99久久精品国产一区二区三区 | 91蜜桃网址入口| 97久久精品人人做人人爽| voyeur盗摄精品| 99久久精品国产毛片| 粉嫩绯色av一区二区在线观看| 国产黑丝在线一区二区三区| 丁香网亚洲国际| 成人一级片网址| 色综合欧美在线| 色综合久久中文综合久久97| 国产精品久久久久影院亚瑟| 国产精品99久久久久久似苏梦涵| 亚洲一二三四在线| 国产亚洲欧美中文| 欧美日韩国产高清一区二区| 国产成人免费在线| 国产suv一区二区三区88区| 香蕉加勒比综合久久| 亚洲免费av观看| 7777精品伊人久久久大香线蕉的 | 欧美电影免费提供在线观看| 日韩女优电影在线观看| 久久综合色鬼综合色| 久久色中文字幕| 中文字幕一区二区在线播放 | 午夜精品福利久久久| 蜜臀99久久精品久久久久久软件| 久久精品国产一区二区三| 激情综合网av| 99麻豆久久久国产精品免费| 欧美区在线观看| 久久亚洲一区二区三区四区| 国产精品久久国产精麻豆99网站| 亚洲一区成人在线| 久久99热国产| av男人天堂一区| 3d成人动漫网站| 日本一区二区免费在线观看视频| 亚洲精选在线视频| 麻豆视频一区二区| 97久久久精品综合88久久| 欧美放荡的少妇| 国产蜜臀97一区二区三区| 亚洲一区二区三区四区在线| 国产一区二三区| 欧美综合欧美视频| 精品国产91九色蝌蚪| 亚洲免费av高清| 国产一区二区三区在线观看免费 | 亚洲女人小视频在线观看| 丝袜国产日韩另类美女| 国产成人免费视频| 欧美日韩成人综合天天影院| 欧美国产日韩精品免费观看| 天堂久久久久va久久久久| 国产中文字幕一区| 欧美系列亚洲系列| 中文字幕久久午夜不卡| 日韩成人精品在线| 91美女福利视频| 2023国产一二三区日本精品2022| 亚洲一区自拍偷拍| a级高清视频欧美日韩| 日韩美一区二区三区| 亚洲一区二区三区美女| 成人黄色在线看| 日韩免费成人网| 日韩精品免费专区| 在线视频国内自拍亚洲视频| 欧美国产成人在线| 韩国三级电影一区二区| 欧美日韩一区二区三区免费看| 中文字幕乱码久久午夜不卡 | 欧美三级中文字幕在线观看| 国产精品免费aⅴ片在线观看| 精东粉嫩av免费一区二区三区| 欧美日韩一区久久| 亚洲一区二区三区四区五区黄| 97国产一区二区| 国产精品久久久久9999吃药| 国产成人精品aa毛片| 久久先锋影音av| 国精产品一区一区三区mba视频| 在线不卡欧美精品一区二区三区| 亚洲一区二区视频| 91麻豆产精品久久久久久| 国产精品免费aⅴ片在线观看| 丁香婷婷综合色啪| 国产精品福利影院| 波多野结衣91| 亚洲丝袜制服诱惑| 91在线一区二区三区| 亚洲少妇30p| 777午夜精品免费视频| 午夜精品一区二区三区电影天堂| 在线观看日韩高清av| 亚洲成a人片在线观看中文| 欧美日韩综合色| 日韩av成人高清| 精品国产亚洲在线| 国产精品456露脸| 中文字幕乱码日本亚洲一区二区 | 从欧美一区二区三区| 久久精品一二三| 成人免费看的视频| 中文字幕一区二区三区在线观看| 91美女片黄在线| 偷拍一区二区三区| 欧美精品一区二区三区蜜臀| 国产一区二区三区四| 欧美国产激情二区三区| 日本韩国欧美一区二区三区| 亚洲午夜精品久久久久久久久| 欧美精品xxxxbbbb| 久久99国产精品成人| 欧美国产禁国产网站cc| 91成人免费在线| 日韩电影在线免费看| 久久综合精品国产一区二区三区| 成人综合在线视频| 亚洲国产中文字幕| 精品三级在线观看| 99视频精品在线| 日韩在线a电影| 中文字幕av不卡| 欧美日韩在线播|