1 /*
2  *_________________________________________________________________________*
3  *      POEMS: PARALLELIZABLE OPEN SOURCE EFFICIENT MULTIBODY SOFTWARE     *
4  *      DESCRIPTION: SEE READ-ME                                           *
5  *      FILE NAME: rigidbody.cpp                                           *
6  *      AUTHORS: See Author List                                           *
7  *      GRANTS: See Grants List                                            *
8  *      COPYRIGHT: (C) 2005 by Authors as listed in Author's List          *
9  *      LICENSE: Please see License Agreement                              *
10  *      DOWNLOAD: Free at www.rpi.edu/~anderk5                             *
11  *      ADMINISTRATOR: Prof. Kurt Anderson                                 *
12  *                     Computational Dynamics Lab                          *
13  *                     Rensselaer Polytechnic Institute                    *
14  *                     110 8th St. Troy NY 12180                           *
15  *      CONTACT:        anderk5@rpi.edu                                    *
16  *_________________________________________________________________________*/
17 
18 #include "rigidbody.h"
19 #include "fixedpoint.h"
20 
21 using namespace std;
22 
RigidBody()23 RigidBody::RigidBody(){
24 }
~RigidBody()25 RigidBody::~RigidBody(){
26 }
27 
GetType()28 BodyType RigidBody::GetType(){
29   return RIGIDBODY;
30 }
31 
ReadInBodyData(istream & in)32 bool RigidBody::ReadInBodyData(istream& in){
33   in >> mass >> inertia;
34   return true;
35 }
36 
WriteOutBodyData(ostream & out)37 void RigidBody::WriteOutBodyData(ostream& out){
38   out << mass << ' ' << inertia;
39 }
40