Biomechanical Joint Model
 Author: Anderson Maciel

cometimeforce.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 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 
00022 //
00023 //  PROJECT.....: CO-ME
00024 //  RESPONSIBLE.: 
00025 //
00026 //  FILE........: cometimeforce.cpp
00027 //  DESCRIPTION.: 
00028 //                                 
00029 //
00030 //  AUTHOR......: Anderson Maciel
00031 //  DATE........: Oct/01/2002
00032 //  DESCRIPTION.: Class definition.
00033 //
00035 
00036 #include <physics/cometimeforce.h>
00037 
00039 // Construction/Destruction
00041 
00042 COME_TimeForce::COME_TimeForce(){
00043 
00044         force = COME_Vector3D( 0, 0, 0 );
00045         time = 0.0;
00046 }
00047 
00048 COME_TimeForce::COME_TimeForce( double x, double y, double z, double t ){
00049 
00050         force = COME_Vector3D( x, y, z );
00051         time = t;
00052 }
00053 
00054 COME_TimeForce::COME_TimeForce( const COME_Vector3D& vectorN, double t ){
00055 
00056         force = COME_Vector3D( vectorN );
00057         time = t;
00058 }
00059 
00060 COME_TimeForce::COME_TimeForce( COME_Point3D& pointN, double t ){
00061 
00062         force = COME_Vector3D( pointN.getX(), pointN.getY(), pointN.getZ() );
00063         time = t;
00064 }
00065 
00066 COME_TimeForce::~COME_TimeForce()
00067 {
00068 
00069 }
00070 
00071 void
00072 COME_TimeForce::setTime( double t ){
00073 
00074         time = t;
00075 }
00076 
00077 double
00078 COME_TimeForce::getTime() const {
00079 
00080         return time;
00081 }
00082 

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