Files

38 lines
812 B
C++
Raw Permalink 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 : XLineDist 类
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: XLineDist 类声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _XLINEDIST_H_
#define _XLINEDIST_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 XLineDist
{
public:
XLineDist(ads_real nD, const XPoint &pt1, const XPoint &pt2);
virtual ~XLineDist();
static int Compare(const XLineDist *p1, const XLineDist *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
XPoint ptLocation1, ptLocation2; //位置
2026-09-28 15:28:50 +08:00
};
#endif