Biomechanical Joint Model
 Author: Anderson Maciel

comepoint3d.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2001 by Anderson Maciel                                 *
00003  *   andi.maciel@gmail.com                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  **************************************************************************/
00020 
00031 
00032 #ifndef __COME_POINT3D_H        
00033 #define __COME_POINT3D_H        
00034 
00035 #include        <algebra/comepoint.h>
00036 #include        <algebra/comepoint2d.h>
00037 
00038 
00040 // Class Name: COME_Point3D (storage and manipulation of 3D points)
00041 // Superclass: COME_Point
00042 // Subclasses: -
00043 
00044 class COME_Point3D : public COME_Point {
00045     public:
00046                 double x;
00047 
00048                 double y;
00049 
00050                 double z;
00051 
00052                 COME_Point3D();
00053                 COME_Point3D(double x, double y, double z);
00054                 double getX() const;
00055                 double getY() const;
00056                 double getZ() const;
00057                 void getXY(double &xx, double &yy);
00058                 void getXZ(double &xx, double &zz);
00059                 void getYZ(double &yy, double &zz);
00060                 void getXYZ(double &xx, double &yy, double &zz);
00061 
00062                 COME_Point3D getPoint3D(void);
00063 
00064                 double* getPointAsArray(void) const;
00065 
00066                 void getPoint(double v[]);
00067                 void setX(double xx);
00068                 void setY(double yy);
00069                 void setZ(double zz);
00070                 void setXY(double xx, double yy);
00071                 void setXZ(double xx, double zz);
00072                 void setYZ(double yy, double zz);
00073                 void setXYZ(double xx, double yy, double zz);
00074                 COME_Point3D operator= (COME_Point3D p);
00075                 COME_Point3D operator- (const COME_Point3D&) const;
00076                 COME_Point3D operator+ (const COME_Point3D&);
00077                 COME_Point3D operator* (double num);
00078 
00079                 COME_Point3D operator-= (int num);
00080                 COME_Point3D operator-= (double num);
00081                 COME_Point3D operator+= (double num);
00082 
00083                 bool operator!= (const COME_Point3D&);
00084 
00085                 bool operator== (const COME_Point3D&);
00086 
00087                 bool operator<= (const COME_Point3D&);
00088 
00089                 bool operator< (const COME_Point3D&);
00090 
00091                 bool operator>= (const COME_Point3D&);
00092 
00093                 bool operator> (const COME_Point3D&);
00094 
00095                 double vpDistance(const COME_Point3D& p1);
00096 };
00097 
00098 #endif

Generated on Thu Dec 1 10:13:35 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5