You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
825 B
C++
41 lines
825 B
C++
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 Rotate.h
|
|
//主要功能:
|
|
// 基础类库
|
|
//程序编写: 2005-12-07
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
#include ".\point2d.h"
|
|
|
|
class AFX_EXT_CLASS CRotate
|
|
{
|
|
public:
|
|
CRotate(int n);
|
|
~CRotate();
|
|
|
|
public:
|
|
void Create(int n);
|
|
|
|
void Rotate(double &x,double &y);
|
|
void Rotate(double &ww, double &wh, double &wa);
|
|
void MirrorAngle(double &ac1,double &ac2);
|
|
void Mirror(double &x,double &y);
|
|
|
|
bool Push(CSize8 sz, double dAngleRadians, CPoint2D point);
|
|
bool Push(double wt,double ht,double dAngleRadians,double x0t=0.0,double y0t=0.0);
|
|
void Pop();
|
|
void PopAll();
|
|
|
|
void operator=(CRotate& ag);
|
|
|
|
protected:
|
|
CSize8 *m_pSize;
|
|
double *angle;
|
|
CPoint2D *m_pPoint;
|
|
int maxnum;
|
|
|
|
int num;
|
|
};
|