PointPos.cpp
上传用户:azhong891
上传日期:2013-06-04
资源大小:197k
文件大小:1k
- // 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;
- }
- else
- {
- 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;
- }