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