⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mg_utils.h

📁 pic 模拟程序!面向对象
💻 H
字号:
#ifndef _mg_utils_h_#define _mg_utils_h_void coarsen(intVector2& vect, intVector2& vectc,int ratio0,int ratio1){	if ((ratio0)&&(ratio1))		vectc = intVector2(((vect.e1()<0) ? -abs(vect.e1()+1)/ratio0-1 : vect.e1()/ratio0 ),							  ((vect.e2()<0) ? -abs(vect.e2()+1)/ratio1-1 : vect.e2()/ratio1 ));	else if (ratio0)		vectc = intVector2(((vect.e1()<0) ? -abs(vect.e1()+1)/ratio0-1 : vect.e1()/ratio0 ),							  (vect.e2()));	else if (ratio1)		vectc = intVector2((vect.e1()),							  ((vect.e2()<0) ? -abs(vect.e2()+1)/ratio1-1 : vect.e2()/ratio1 ));}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -