39 lines
812 B
C++
39 lines
812 B
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XLineDist 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XLineDist 类声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _XLINEDIST_H_
|
|
#define _XLINEDIST_H_
|
|
|
|
#ifndef _XPOINT_H_
|
|
#include "XPoint.h"
|
|
#endif
|
|
|
|
// 两条线段之间的最短距离
|
|
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:
|
|
|
|
ads_real nDist; //值
|
|
|
|
XPoint ptLocation1, ptLocation2; //位置
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|