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

37 lines
991 B
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TGGePolyDist类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TGGePolyDist类声明
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TGGEPOLYDIST_H_
#define _TGGEPOLYDIST_H_
#ifndef _TADSGEPOINT3D_H_
#include "TADSGePoint3d.h"
#endif
// 两个多边形之间的最短距离
class GEOAPI TGGePolyDist
{
public:
TGGePolyDist(ads_real nD, int n1, int n2, const TADSGePoint3d &pt1, const TADSGePoint3d &pt2);
TGGePolyDist();
virtual ~TGGePolyDist();
static int Compare(const TGGePolyDist *p1, const TGGePolyDist *p2);
public:
//值
ads_real nDist;
//最短处在俩个多边形的边号
int nIndex1, nIndex2;
//最短处的两点
TADSGePoint3d ptLocation1, ptLocation2;
};
#endif