Files
envi-code/SourceCode/Code2026/Dimension/GeSector.h
T

41 lines
813 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#pragma once
2026-09-28 15:28:50 +08:00
#include "EntitySet.h"
class GeSector
{
public:
GeSector();
GeSector(ads_real dStAng, ads_real dEndAng);
GeSector(const GeSector & src);
GeSector(const EntitySet & ent);
~GeSector();
GeSector& operator = (GeSector &src);
bool operator == (const GeSector &src) const;
int operator ! () const;
2026-10-04 00:04:20 +08:00
// 判断一平面向量是否在扇形区内
2026-09-28 15:28:50 +08:00
int AngleFlag(ads_real dAng) const;
2026-10-04 00:04:20 +08:00
// 找较近的一个角度
2026-09-28 15:28:50 +08:00
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;
};