Files
envi-code/SourceCode/Code2026/tg_shs/inc/geo/TGGeLineDist.h
T

38 lines
887 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : TGGeLineDist 类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: TGGeLineDist 类声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TGGELINEDIST_H_
#define _TGGELINEDIST_H_
#ifndef _TADSGEPOINT3D_H_
#include "TADSGePoint3d.h"
#endif
2026-10-04 00:04:20 +08:00
// 两条线段之间的最短距离
2026-09-28 15:28:50 +08:00
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:
2026-10-04 00:04:20 +08:00
ads_real nDist; //值
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
TADSGePoint3d ptLocation1, ptLocation2; //位置
2026-09-28 15:28:50 +08:00
};
#endif