备录
来源:互联网 发布:不喜欢粗人知乎 编辑:程序博客网 时间:2024/04/23 15:23
CPoint CDrawtestView::fun( CPoint ptCenter, int iRadius, int iInterval ,int idirect ,int iFlag)
{
if( iFlag ==-1)
{
int Temp = ptCenter.x;
ptCenter.x = ptCenter.y;
ptCenter.y = Temp;
}
for(int i = 1; true; i++)
{
double iTempRadius = iRadius * i;//y de cha ju
double origin_x = ptCenter.x - MAX_LENGTH/2;
double iTempInterval =(double)MAX_LENGTH/(double)(iInterval-1);
CPoint TempPoint;
for( double j = 0; j<=MAX_LENGTH;j+=iTempInterval)
{
TempPoint.x = origin_x + j+0.5;
TempPoint.y = ptCenter.y + idirect*(iTempRadius+0.5);
if( iFlag ==-1)
{
int Temp = TempPoint.x;
TempPoint.x = TempPoint.y;
TempPoint.y = Temp;
}
vector<CRect* >::iterator it = m_vcRect.begin();
for(;it!=m_vcRect.end();++it)
{
if( (*it)->PtInRect(TempPoint))
break;
}
if( it == m_vcRect.end())
return TempPoint;
}
}
return ptCenter;
}
- 备录
- 备忘录:Jquery 备录
- 网站备存记录
- 网址备录
- 中国数字备录
- Activity生命周期学习备录
- 技术备录2011-10-9
- log4j日志配置详解备录
- 文件上传备录(使用servlet)
- 工作上Linux 重要Linux 命令备录
- 明言录
- 总目录
- 书名录
- 三思录
- 自省录
- 总目录
- 录单
- 对话录
- cfgwiz.exe
- cftmon.exe
- cgtask.exe
- charmap.exe
- ActiveReports工作总结1——AR简介
- 备录
- chkadmin.exe
- ActiveReports工作总结2——数据源绑定
- chkras.exe
- ActiveReports工作总结3——换列打印
- ActiveReports工作总结4——换页打印
- choke.exe
- cidaemon.exe
- ActiveReports工作总结5——常用分栏帐票印刷