Files
envi-code/SourceCode/Code2026/AdsXRx/XRegionIndex.cpp
T
2026-09-28 15:28:50 +08:00

40 lines
846 B
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, SH Software Co. Ltd.
// = FileName : XRegionIndex Àà
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
// = Description: XRegionIndex ¶¨Òå
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#include "StdAfx.h"
#include "XRegionIndex.h"
int XRegionIndex::CompareRegion(const XRegionIndex *p1, const XRegionIndex *p2)
{
if (fabs(p1->m_nPathArea) > fabs(p2->m_nPathArea))
{
return 1;
}
return -1;
}
XRegionIndex::XRegionIndex()
{
m_nIndex = -1;
m_nPathArea = 0;
}
XRegionIndex::XRegionIndex(int idx, double dArea, XPoint pt)
: m_nIndex(idx), m_nPathArea(dArea), m_ptInside(pt)
{
}
XRegionIndex::~XRegionIndex()
{
}