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

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

?? math.h

?? 這是VCF框架的代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*	Math.h: the vrtoad::Math classes	Author: Alan Fischer	Email: siralanf_at_lightningtoads_dot_com	Date: 9/21/03	Note: These are untemplated because VC6 fails to optimized templates effectivly.*/#ifndef VRTOAD_MATH_H#define VRTOAD_MATH_H#if defined(WIN32) && defined(_MSC_VER)#	define inline __forceinline#	pragma warning(disable:4244)#endif#ifdef __BORLANDC__#include <cstdlib>#include <cmath>using std::srand;using std::rand;using std::sqrt;using std::acos;using std::asin;using std::cos;using std::sin;using std::atan2;using std::exp;using std::log;using std::fabs;using std::itoa;using std::putenv;using std::ultoa;using std::swab;#define _itoa itoa#define _ultoa ultoa#define _putenv putenv#define _swab swab#else#include <math.h>#include <stdlib.h>#endif#include <vector>#ifdef VRTOAD_MATH_DOUBLE#	define cos cos#	define sin sin#	define sqrt sqrt#	define vrReal double#else#ifndef __BORLANDC__#	define cos cosf#	define sin sinf#	if 1#		define sqrt sqrtf#	else#		define sqrt fastsqrt#	endif#endif#	define vrReal float#endifnamespace vrtoad{//Constantsconst vrReal vrEpsilon=		(vrReal)0.001;const vrReal vrInfinity=	(vrReal)100000000;const vrReal vrSqrt2=		(vrReal)1.41421356237309504880168;const vrReal vrPi=			(vrReal)3.14159265358979323846264;template<class T> inline T Max(const T &t1,const T &t2){	return ((t1>t2)?t1:t2);}template<class T> inline T Min(const T &t1,const T &t2){	return ((t1<t2)?t1:t2);}template<class T> inline T abs(const T &t1){	return ((t1>0)?t1:-t1);}template<class T> inline T square(const T &t1){	return t1*t1;}template<class T> inline T linearInterpolate(const T &t1,const T &t2,vrReal time){	return t1*(1-time)+t2*time;}template<class T1,class T2,class T3> inline T3 clamp(const T1 low,const T2 high,const T3 value){        if(value<low)                return low;        if(value>high)                return high;        return value;}template<class T> inline bool finite(const T &t){	return t==t;}//These two methods aren't templated, because otherwise if you call toRad(90), it will treat it as an integer, which is BADinline vrReal toRad(vrReal deg){	return vrReal(deg*(vrReal)(vrPi/180.0));}inline vrReal toDeg(vrReal rad){	return vrReal(rad*(vrReal)(180.0/vrPi));}#define setBit(v,b) (v|=b)#define clearBit(v,b) (v&=~b)#define isBitSet(v,b) (v&b)inline void setRandomSeed(unsigned int seed){	srand(seed);}//For some reason it appears that the random number functions sometime return numbers equal to upperinline float randomFloat(float lower,float upper){	float r=(float)rand()/(float)RAND_MAX*(upper-lower)+lower;	if(r>=upper){r=lower;}	return r;}inline int randomInt(int lower,int upper){	int r=(int)((float)rand()/(float)RAND_MAX*(float)(upper-lower))+lower;	if(r>=upper){r=lower;}	return r;}float fastsqrt(float n);//Vector2class Vector2{public:	vrReal x,y;	inline Vector2():x(0),y(0){}	inline Vector2(vrReal x1,vrReal y1):x(x1),y(y1){}	inline vrReal *getData(){return (vrReal*)&x;}	inline const vrReal *getData() const{return (vrReal*)&x;}	inline bool operator==(const Vector2 &vec) const{		return (vec.x==x && vec.y==y);	}	inline bool operator!=(const Vector2 &vec) const{		return (vec.x!=x || vec.y!=y);	}	inline Vector2 operator+(const Vector2 &vec) const{		return Vector2(x+vec.x,y+vec.y);	}	inline void operator+=(const Vector2 &vec){		x+=vec.x;		y+=vec.y;	}	inline Vector2 operator-(const Vector2 &vec) const{		return Vector2(x-vec.x,y-vec.y);	}	inline void operator-=(const Vector2 &vec){		x-=vec.x;		y-=vec.y;	}	inline Vector2 operator*(vrReal f) const{		return Vector2(x*f,y*f);	}	inline void operator*=(vrReal f){		x*=f;		y*=f;	}	inline Vector2 operator*(const Vector2 &vec) const{		return Vector2(x*vec.x,y*vec.y);	}	inline void operator*=(const Vector2 &vec){		x*=vec.x;		y*=vec.y;	}	inline Vector2 operator/(vrReal f) const{		f=1/f;		return Vector2(x*f,y*f);	}	inline void operator/=(vrReal f){		f=1/f;		x*=f;		y*=f;	}	inline Vector2 operator/(const Vector2 &vec) const{		return Vector2(x/vec.x,y/vec.y);	}	inline void operator/=(const Vector2 &vec){		x/=vec.x;		y/=vec.y;	}	inline Vector2 operator-() const{		return Vector2(-x,-y);	}	inline vrReal &operator[](int i){		return *(&x+i);	}	inline vrReal operator[](int i) const{		return *(&x+i);	}	//TODO: Remove these on the vectors.  They're not "well defined" operations	inline bool operator>(const Vector2 &vec) const{		return (x>vec.x && y>vec.y);	}	inline bool operator<(const Vector2 &vec) const{		return (x<vec.x && y<vec.y);	}	inline bool operator>=(const Vector2 &vec) const{		return (x>=vec.x && y>=vec.y);	}	inline bool operator<=(const Vector2 &vec) const{		return (x<=vec.x && y<=vec.y);	}};inline Vector2 operator*(vrReal scalar,const Vector2 &vector){	return Vector2(vector.x*scalar,vector.y*scalar);}inline vrReal lengthSquared(const Vector2 &vec){	return vec.x*vec.x+vec.y*vec.y;}inline vrReal length(const Vector2 &vec){	return (vrReal)sqrt((vrReal)(vec.x*vec.x+vec.y*vec.y));}// TODO: return void?inline Vector2 normalize(Vector2 &vec){	vrReal l=1/length(vec);	vec.x*=l;	vec.y*=l;	return vec;}inline Vector2 normalize(const Vector2 &vec){	vrReal l=1/length(vec);	Vector2 vec2;	vec2.x=vec.x*l;	vec2.y=vec.y*l;	return vec2;}//Vector3class Vector3{public:	vrReal x,y,z;	inline Vector3():x(0),y(0),z(0){}	inline Vector3(vrReal x1,vrReal y1,vrReal z1):x(x1),y(y1),z(z1){}	inline Vector3(const Vector2 &vec,vrReal z1){		x=vec.x;y=vec.y;z=z1;	}	inline vrReal *getData(){return (vrReal*)&x;}	inline const vrReal *getData() const{return (vrReal*)&x;}	inline bool operator==(const Vector3 &vec) const{		return (vec.x==x && vec.y==y && vec.z==z);	}	inline bool operator!=(const Vector3 &vec) const{		return (vec.x!=x || vec.y!=y || vec.z!=z);	}	inline Vector3 operator+(const Vector3 &vec) const{		return Vector3(x+vec.x,y+vec.y,z+vec.z);	}	inline void operator+=(const Vector3 &vec){		x+=vec.x;		y+=vec.y;		z+=vec.z;	}	inline Vector3 operator-(const Vector3 &vec) const{		return Vector3(x-vec.x,y-vec.y,z-vec.z);	}	inline void operator-=(const Vector3 &vec){		x-=vec.x;		y-=vec.y;		z-=vec.z;	}	inline Vector3 operator*(vrReal f) const{		return Vector3(x*f,y*f,z*f);	}	inline void operator*=(vrReal f){		x*=f;		y*=f;		z*=f;	}	inline Vector3 operator*(const Vector3 &vec) const{		return Vector3(x*vec.x,y*vec.y,z*vec.z);	}	inline void operator*=(const Vector3 &vec){		x*=vec.x;		y*=vec.y;		z*=vec.z;	}	inline Vector3 operator/(vrReal f) const{		f=1/f;		return Vector3(x*f,y*f,z*f);	}	inline void operator/=(vrReal f){		f=1/f;		x*=f;		y*=f;		z*=f;	}	inline Vector3 operator/(const Vector3 &vec) const{		return Vector3(x/vec.x,y/vec.y,z/vec.z);	}	inline void operator/=(const Vector3 &vec){		x/=vec.x;		y/=vec.y;		z/=vec.z;	}	inline Vector3 operator-() const{		return Vector3(-x,-y,-z);	}	inline vrReal &operator[](int i){		return *(&x+i);	}	inline vrReal operator[](int i) const{		return *(&x+i);	}	inline bool operator>(const Vector3 &vec) const{		return (x>vec.x && y>vec.y && z>vec.z);	}	inline bool operator<(const Vector3 &vec) const{		return (x<vec.x && y<vec.y && z<vec.z);	}	inline bool operator>=(const Vector3 &vec) const{		return (x>=vec.x && y>=vec.y && z>=vec.z);	}	inline bool operator<=(const Vector3 &vec) const{		return (x<=vec.x && y<=vec.y && z<=vec.z);	}};const Vector3 vrRight(1,0,0);const Vector3 vrForward(0,1,0);const Vector3 vrUp(0,0,1);inline vrReal lengthSquared(const Vector3 &vec){	return vec.x*vec.x+vec.y*vec.y+vec.z*vec.z;}inline vrReal length(const Vector3 &vec){	return (vrReal)sqrt((vrReal)(vec.x*vec.x+vec.y*vec.y+vec.z*vec.z));}// TODO: return void?inline Vector3 normalize(Vector3 &vec){	vrReal l=1/length(vec);	vec.x*=l;	vec.y*=l;	vec.z*=l;	return vec;}inline Vector3 normalize(const Vector3 &vec){	vrReal l=1/length(vec);	Vector3 vec2;	vec2.x=vec.x*l;	vec2.y=vec.y*l;	vec2.z=vec.z*l;	return vec2;}// To keep code clean, use this for an XYZ Euler angle, instead of a Vectortypedef Vector3 EulerAngle;inline EulerAngle toRad(const EulerAngle &deg){	return EulerAngle(toRad(deg.x),toRad(deg.y),toRad(deg.z));}inline EulerAngle toDeg(const EulerAngle &deg){	return EulerAngle(toDeg(deg.x),toDeg(deg.y),toDeg(deg.z));}inline Vector3 cross(const Vector3 &vec1,const Vector3 &vec2){	return Vector3(vec1.y*vec2.z-vec1.z*vec2.y,vec1.z*vec2.x-vec1.x*vec2.z,vec1.x*vec2.y-vec1.y*vec2.x);}inline Vector3 operator*(vrReal scalar,const Vector3 &vector){	return Vector3(vector.x*scalar,vector.y*scalar,vector.z*scalar);}inline vrReal dot(const Vector3 &vec1,const Vector3 &vec2){	return vec1.x*vec2.x+vec1.y*vec2.y+vec1.z*vec2.z;}inline Vector3 reflectVector(const Vector3 &vec,const Vector3 &norm){	return norm*(2*dot(vec,norm))-vec;}void setVectorsFromEulerAngles(const EulerAngle &angles,Vector3 &forward,Vector3 &up,Vector3 &right);vrReal getXYAngle(const Vector3 &vec1,const Vector3 &vec2);inline vrReal angleBetween(const Vector3 &vec1,const Vector3 &vec2){	return acos(dot(vec1,vec2));}//Vector4class Vector4{public:	vrReal x,y,z,w;	inline Vector4():x(0),y(0),z(0),w(0){}	inline Vector4(vrReal x1,vrReal y1,vrReal z1,vrReal w1):x(x1),y(y1),z(z1),w(w1){}	inline Vector4(const Vector3 &vec,vrReal w1){		x=vec.x;y=vec.y;z=vec.z;w=w1;	}	inline vrReal *getData(){return (vrReal*)&x;}	inline const vrReal *getData() const{return (vrReal*)&x;}	inline bool operator==(const Vector4 &vec) const{		return (vec.x==x && vec.y==y && vec.z==z && vec.w==w);	}	inline bool operator!=(const Vector4 &vec) const{		return (vec.x!=x || vec.y!=y || vec.z!=z || vec.w!=w);	}	inline Vector4 operator+(const Vector4 &vec) const{		return Vector4(x+vec.x,y+vec.y,z+vec.z,w+vec.w);	}	inline void operator+=(const Vector4 &vec){		x+=vec.x;		y+=vec.y;		z+=vec.z;		w+=vec.w;	}	inline Vector4 operator-(const Vector4 &vec) const{		return Vector4(x-vec.x,y-vec.y,z-vec.z,w-vec.w);	}	inline void operator-=(const Vector4 &vec){		x-=vec.x;		y-=vec.y;		z-=vec.z;		w-=vec.w;	}	inline Vector4 operator*(vrReal f) const{		return Vector4(x*f,y*f,z*f,w*f);	}	inline void operator*=(vrReal f){		x*=f;		y*=f;		z*=f;		w*=f;	}	inline Vector4 operator*(const Vector4 &vec) const{		return Vector4(x*vec.x,y*vec.y,z*vec.z,w*vec.w);	}	inline void operator*=(const Vector4 &vec){		x*=vec.x;		y*=vec.y;		z*=vec.z;		w*=vec.w;	}	inline Vector4 operator/(vrReal f) const{		f=1/f;		return Vector4(x*f,y*f,z*f,w*f);	}	inline void operator/=(vrReal f){		f=1/f;		x*=f;		y*=f;		z*=f;		w*=f;	}	inline void operator/=(const Vector4 &vec){		x/=vec.x;		y/=vec.y;		z/=vec.z;		w/=vec.w;	}	inline Vector4 operator-() const{		return Vector4(-x,-y,-z,-w);	}	inline vrReal &operator[](int i){		return *(&x+i);	}	inline vrReal operator[](int i) const{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天堂精品在线观看| 国产午夜精品一区二区三区嫩草 | 欧美精品一区二区三区在线播放| 亚洲r级在线视频| 777欧美精品| 精品在线播放午夜| 久久亚洲综合av| 99精品欧美一区二区蜜桃免费| 亚洲色图一区二区| 欧美日韩一区精品| 久草在线在线精品观看| 久久精品这里都是精品| 99久久精品国产一区二区三区 | 午夜精品久久久久久久99樱桃 | 国产视频911| 99re热这里只有精品视频| 亚洲精品美国一| 3d动漫精品啪啪| 国产久卡久卡久卡久卡视频精品| 国产精品水嫩水嫩| 欧美喷潮久久久xxxxx| 精品一区二区三区蜜桃| ㊣最新国产の精品bt伙计久久| 欧美日韩一区二区三区在线看| 蜜臀av国产精品久久久久| 国产精品天天看| 欧美日韩和欧美的一区二区| 精品一二三四在线| 亚洲麻豆国产自偷在线| 久久人人97超碰com| 色屁屁一区二区| 国模大尺度一区二区三区| 亚洲女人小视频在线观看| 日韩欧美卡一卡二| 色婷婷综合久久久久中文一区二区| 奇米一区二区三区| 亚洲少妇中出一区| 精品国产免费人成电影在线观看四季 | 欧美日韩精品专区| 不卡的电影网站| 久久福利资源站| 中文字幕日韩欧美一区二区三区| 日韩一区二区免费在线观看| 91麻豆国产在线观看| 国产永久精品大片wwwapp| 一区二区三区不卡在线观看| www激情久久| 在线一区二区三区| 国产sm精品调教视频网站| 亚洲高清免费在线| 国产精品二三区| 国产性做久久久久久| 日韩一级二级三级| 欧美日韩在线不卡| 欧美在线免费观看视频| gogogo免费视频观看亚洲一| 狠狠狠色丁香婷婷综合久久五月| 亚洲成人激情综合网| 国产精品传媒视频| 久久精品男人天堂av| 亚洲精品一区二区三区99| 日韩一区二区在线免费观看| 欧美日精品一区视频| 欧美伊人精品成人久久综合97| www.日韩精品| 成人国产精品免费| 国产高清精品在线| 国模少妇一区二区三区| 精品一区二区三区视频在线观看 | 最新欧美精品一区二区三区| 久久久久久久久久久电影| 日韩精品一区二区三区四区 | 亚洲综合成人在线| 亚洲精品高清在线观看| 亚洲天堂av老司机| 亚洲图片另类小说| 亚洲久草在线视频| 亚洲综合色成人| 亚洲成a人在线观看| 亚洲国产欧美日韩另类综合| 一区二区三区不卡在线观看| 亚洲男人天堂av网| 亚洲一级二级在线| 亚洲国产精品久久不卡毛片| 午夜精品在线看| 蜜桃精品视频在线观看| 久久99热这里只有精品| 久久精品国内一区二区三区| 麻豆久久久久久| 美女视频黄 久久| 国产另类ts人妖一区二区| 国产91高潮流白浆在线麻豆| 懂色av一区二区三区蜜臀| 成人av动漫在线| 色噜噜狠狠色综合中国| 欧美日韩另类国产亚洲欧美一级| 欧美麻豆精品久久久久久| 日韩欧美国产综合在线一区二区三区| 精品国产3级a| 1024成人网色www| 午夜精品久久久久久久99樱桃| 麻豆国产精品官网| 成人av在线观| 欧美精品色综合| 久久精品免费在线观看| 亚洲男人的天堂在线aⅴ视频| 亚洲一区二区三区在线播放| 久久se精品一区二区| 成人sese在线| 欧美精品自拍偷拍动漫精品| 精品黑人一区二区三区久久| 中文字幕日韩精品一区| 国产精品一区二区三区四区 | 性感美女久久精品| 国产在线精品一区在线观看麻豆| 成人av在线网站| 欧美一区二区三区在线视频| 日本一区二区视频在线| 婷婷六月综合亚洲| 成人黄色777网| 日韩一区二区三区视频在线| 中文字幕一区二区在线观看| 亚洲第一av色| jlzzjlzz国产精品久久| 欧美一区二区日韩| 亚洲视频在线一区观看| 久久99深爱久久99精品| 91黄色免费看| 久久精子c满五个校花| 日韩激情一二三区| 99精品视频在线观看| 26uuu精品一区二区在线观看| 一个色综合av| caoporm超碰国产精品| 日韩免费视频一区| 亚洲成人1区2区| 99久久精品情趣| 久久久噜噜噜久久中文字幕色伊伊| 亚洲激情图片小说视频| 成人一级片在线观看| 日韩视频123| 午夜伊人狠狠久久| 91日韩在线专区| 久久精品亚洲精品国产欧美 | 久久久99免费| 蜜臀av性久久久久av蜜臀妖精| 色综合一个色综合亚洲| 中文在线免费一区三区高中清不卡| 免费在线看成人av| 欧美日韩精品一区二区天天拍小说 | 97aⅴ精品视频一二三区| 精品国产第一区二区三区观看体验| 亚洲永久免费av| 99久久99久久综合| 国产视频911| 国产成人午夜电影网| 精品国产凹凸成av人导航| 热久久免费视频| 91.xcao| 日日骚欧美日韩| 欧美丰满少妇xxxxx高潮对白| 一区二区三区四区在线播放| 91色九色蝌蚪| 一区二区三区在线免费观看| 波多野结衣欧美| 亚洲国产精品成人综合| 成人综合婷婷国产精品久久 | 精品一区二区三区在线播放| 亚洲色图欧美激情| 色婷婷激情综合| 亚洲欧美一区二区三区极速播放| 99免费精品视频| **性色生活片久久毛片| 色婷婷精品久久二区二区蜜臀av| 亚洲精品免费视频| 在线视频国内自拍亚洲视频| 亚洲影院在线观看| 91精品在线免费观看| 秋霞影院一区二区| 精品处破学生在线二十三| 国产一区二区三区免费看| 国产亚洲精品精华液| caoporn国产精品| 夜色激情一区二区| 欧美日韩三级在线| 免费成人性网站| 精品嫩草影院久久| 国产成人午夜视频| 亚洲柠檬福利资源导航| 在线看一区二区| 青青草视频一区| 久久久五月婷婷| 99久久综合国产精品| 亚洲一区在线观看网站| 日韩精品一区二区三区四区| 成人免费视频视频在线观看免费| 亚洲日本在线a| 日韩三级精品电影久久久| 粉嫩绯色av一区二区在线观看| 亚洲免费毛片网站|