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

39 lines
887 B
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TGGeLineDist 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TGGeLineDist 类声明
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TGGELINEDIST_H_
#define _TGGELINEDIST_H_
#ifndef _TADSGEPOINT3D_H_
#include "TADSGePoint3d.h"
#endif
// 两条线段之间的最短距离
class GEOAPI TGGeLineDist
{
public:
TGGeLineDist(ads_real nD, const TADSGePoint3d &pt1, const TADSGePoint3d &pt2);
virtual ~TGGeLineDist();
static int Compare(const TGGeLineDist *p1, const TGGeLineDist *p2);
public:
ads_real nDist; //值
TADSGePoint3d ptLocation1, ptLocation2; //位置
};
#endif