Files
envi-code/SourceCode/Code2026/inc/AdsXRx/XPolyDist.h
T

37 lines
914 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, SH Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : XPolyDist类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: XPolyDist类声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _XPOLYDIST_H_
#define _XPOLYDIST_H_
#ifndef _XPOINT_H_
#include "XPoint.h"
#endif
2026-10-04 00:04:20 +08:00
// 两个多边形之间的最短距离
2026-09-28 15:28:50 +08:00
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:
2026-10-04 00:04:20 +08:00
//值
2026-09-28 15:28:50 +08:00
ads_real nDist;
2026-10-04 00:04:20 +08:00
//最短处在俩个多边形的边号
2026-09-28 15:28:50 +08:00
int nIndex1, nIndex2;
2026-10-04 00:04:20 +08:00
//最短处的两点
2026-09-28 15:28:50 +08:00
XPoint ptLocation1, ptLocation2;
};
#endif