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.
31 lines
573 B
C++
31 lines
573 B
C++
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 Angle.h
|
|
//主要功能:
|
|
// 基础类库
|
|
//程序编写: 2005-12-07
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
#include ".\point2d.h"
|
|
|
|
class AFX_EXT_CLASS CAngle : public CPoint2D
|
|
{
|
|
protected:
|
|
double cosa,sina,ix,iy;
|
|
|
|
public:
|
|
CAngle(void);
|
|
~CAngle(void);
|
|
|
|
void Create();
|
|
void Create(double angle, double x0, double y0);
|
|
void Create(CPoint& point);
|
|
|
|
void Rotate(double& x, double& y);
|
|
void operator=(CAngle& ag);
|
|
|
|
public:
|
|
double angle;
|
|
};
|