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

57 lines
1.3 KiB
C++

//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, SH Software Co. Ltd.
// = FileName : XSector 扇形类
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
// = Description: XSector 类声明
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _XSECTOR_H_
#define _XSECTOR_H_
#ifndef _ENTITY_H_
#include "Entity.h"
#endif
class GEOAPI XSector
{
public:
XSector();
XSector(ads_real dStAng, ads_real dEndAng);
XSector(const XSector & src);
XSector(const Entity & ent);
~XSector();
XSector& operator = (XSector &src);
bool operator == (const XSector &src) const;
int operator ! () const;
// 判断一平面向量是否在扇形区内
int AngleFlag(ads_real dAng) const;
// 找较近的一个角度
ads_real* NearAngle(ads_real dAng);
ads_real Bulge() const;
ads_real MidAngle() const;
void SetAngles(ads_real dStart, ads_real dEnd);
void TransUCS(ads_real dIncAngle);
void SetStarAngle(ads_real dAngle);
void SetEndAngle(ads_real dAngle);
ads_real GetStarAngle() const;
ads_real GetEndAngle() const;
public:
double m_dstartAngle;
double m_dendAngle;
};
#endif