Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

point.h

00001 //  Copyright (c) 1996-2002 by Autodesk, Inc.
00002 //
00003 //  By using this code, you are agreeing to the terms and conditions of
00004 //  the License Agreement included in the documentation for this code.
00005 //
00006 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00007 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00008 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00009 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00010 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00011 //
00012 //  Use, duplication, or disclosure by the U.S. Government is subject to
00013 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00014 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00015 //  Data and Computer Software), as applicable.
00016 //
00017 
00018 #if !defined POINT_HEADER
00019 #define POINT_HEADER
00020 
00022 
00023 class WHIPTK_API WT_Point3D
00024 {
00025 public:
00026     double        m_x; 
00027     double        m_y; 
00028     double        m_z; 
00030 
00031     WT_Point3D() {}
00032 
00034     WT_Point3D(double x, double y, double z = 0.0)
00035         : m_x (x)
00036         , m_y (y)
00037         , m_z (z)
00038     { }
00039 
00041     WT_Boolean operator== (WT_Point3D const & p3d) const
00042     {
00043         if (m_x == p3d.m_x && m_y == p3d.m_y && m_z == p3d.m_z)
00044             return WD_True;
00045         else
00046             return WD_False;
00047     }
00048 };
00049 
00051 
00052 class WHIPTK_API WT_Point2D
00053 {
00054 public:
00055     double        m_x; 
00056     double        m_y; 
00058 
00059     WT_Point2D() {}
00060 
00062     WT_Point2D(double x, double y)
00063         : m_x (x)
00064         , m_y (y)
00065     { }
00066 
00068     WT_Boolean operator== (WT_Point2D const & p3d) const
00069     {
00070         if (m_x == p3d.m_x && m_y == p3d.m_y )
00071             return WD_True;
00072         else
00073             return WD_False;
00074     }
00075 };
00076 
00077 #endif // POINT_HEADER

Generated on Tue May 17 12:07:44 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1