Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Point3D.h

00001 // Point3D.h: interface for the CPoint3D class.
00002 //
00004 #include <math.h>
00005 
00006 #if !defined(AFX_POINT3D_H__EB68C873_4256_4D30_A089_74E3E622D626__INCLUDED_)
00007 #define AFX_POINT3D_H__EB68C873_4256_4D30_A089_74E3E622D626__INCLUDED_
00008 
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif // _MSC_VER > 1000
00012 
00014 class CPoint3D  
00015 {
00016 public:
00017         // True if point is inside boundaries of rectangle defined by parameters.
00018         bool Inside(CPoint3D min, CPoint3D max);
00020         float GetZPos();
00022         float GetYPos();
00024         float GetXPos();
00026         void SetPos(float xPos,float yPos,float zPos);
00028         float Distance(CPoint3D &p);
00030         float QuadDistance(CPoint3D &p);
00031         
00032         CPoint3D();
00033         CPoint3D(float xPos,float yPos,float zPos);
00034         virtual ~CPoint3D();
00035 
00037         float m_ZPos;
00039         float m_YPos;
00041         float m_XPos;
00042 };
00043 
00044 #endif // !defined(AFX_POINT3D_H__EB68C873_4256_4D30_A089_74E3E622D626__INCLUDED_)

Generated on Fri Aug 9 10:12:39 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002