www.pudn.com > VC++Delaunay.rar > PointPos.cpp


// PointPos.cpp: implementation of the CPointPos class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "Delaunay.h" 
#include "PointPos.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
IMPLEMENT_SERIAL(CPointPos,CObject,1)  // 
 
CPointPos::CPointPos() 
{ 
	m_x=0;m_y=0;m_z=0.5; 
	Fx=0;Fy=0; 
	nx=0;ny=0;nz=0; 
} 
 
CPointPos::~CPointPos() 
{ 
 
} 
void CPointPos::Serialize(CArchive& ar) ////// 
{ 
	if(ar.IsStoring()) 
	{ 
		ar<>m_x>>m_y>>m_z>>Fx>>Fy; 
	} 
 
} 
 
CPointPos::CPointPos(double x, double y) 
{ 
	m_x=x;m_y=y;m_z=0.5;//double(rand())/double(RAND_MAX); 
	Fx=0;Fy=0; 
	nx=0;ny=0;nz=0; 
}