Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

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