Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

55 lines
1.1 KiB
C++

//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TPGeEllipse 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TPGeEllipse 声明 方程:x=center.x+aRadius*cos(t);y=center.y+bRadius*sin(t)
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _TPGEELLIPSE_H_
#define _TPGEELLIPSE_H_
#ifndef _TGPOINT_H_
#include "TGPoint.h"
#endif
#ifndef _TWFLAG_H_
#include "TWFlag.h"
#endif
class GEOAPI TPGeEllipse
{
public:
TPGeEllipse();
TPGeEllipse(const TGPoint& pt,double aRadius,double bRadius);
virtual ~TPGeEllipse();
bool operator == (const TPGeEllipse& e) const;
bool operator != (const TPGeEllipse& e) const;
bool IsValid() const;
bool IsCircle() const;
GRelation HitTest(const TGPoint& pt) const;
void Pt2Pa(const TGPoint& pt,double& pa) const;
void Pa2Pt(double pa,TGPoint& pt) const;
public:
TGPoint center;
double a,b;
};
#endif