//-----------------------------------------------------------------------------+ // Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd. // = FileName : TGGeLineDist 类 // = Version : ver2.0 // = Author : wlw // = CreateDate : 2002-09-09 // = Description: TGGeLineDist 类声明 // = Maintainers: // //-----------------------------------------------------------------------------+ #ifndef _TGGELINEDIST_H_ #define _TGGELINEDIST_H_ #ifndef _TADSGEPOINT3D_H_ #include "TADSGePoint3d.h" #endif // 两条线段之间的最短距离 class GEOAPI TGGeLineDist { public: TGGeLineDist(ads_real nD, const TADSGePoint3d &pt1, const TADSGePoint3d &pt2); virtual ~TGGeLineDist(); static int Compare(const TGGeLineDist *p1, const TGGeLineDist *p2); public: ads_real nDist; //值 TADSGePoint3d ptLocation1, ptLocation2; //位置 }; #endif