37 lines
953 B
C++
37 lines
953 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
|