www.pudn.com > 1012.zip > Point3d.h
// Point3d.h: interface for the CPoint3d class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POINT3D_H__B45DFAE1_2F40_11D8_924E_00E044397728__INCLUDED_)
#define AFX_POINT3D_H__B45DFAE1_2F40_11D8_924E_00E044397728__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPoint3d
{
public:
CPoint3d();
virtual ~CPoint3d();
public:
void Set(double dx,double dy,double dz);
double DistanceTo(const CPoint3d &pt);
CPoint3d& operator =(const CPoint3d &pt)
{
x = pt.x;
y = pt.y;
z = pt.z;
return *this;
}
public:
double x,y,z;
};
#endif // !defined(AFX_POINT3D_H__B45DFAE1_2F40_11D8_924E_00E044397728__INCLUDED_)