1 /*
2  *_________________________________________________________________________*
3  *      POEMS: PARALLELIZABLE OPEN SOURCE EFFICIENT MULTIBODY SOFTWARE     *
4  *      DESCRIPTION: SEE READ-ME                                           *
5  *      FILE NAME: fixedpoint.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 
19 #include "fixedpoint.h"
20 #include <iostream>
21 #include <iomanip>
22 
23 using namespace std;
24 
FixedPoint()25 FixedPoint::FixedPoint(){
26 }
~FixedPoint()27 FixedPoint::~FixedPoint(){
28 }
29 
FixedPoint(double x,double y,double z)30 FixedPoint::FixedPoint(double x, double y, double z){
31   position(1) = x;
32   position(2) = y;
33   position(3) = z;
34 }
35 
FixedPoint(Vect3 & v)36 FixedPoint::FixedPoint(Vect3& v){
37   position = v;
38 }
39 
GetType()40 PointType FixedPoint::GetType(){
41   return FIXEDPOINT;
42 }
43 
ReadInPointData(std::istream & in)44 bool FixedPoint::ReadInPointData(std::istream& in){
45   in >> position;
46   return true;
47 }
48 
WriteOutPointData(std::ostream & out)49 void FixedPoint::WriteOutPointData(std::ostream& out){
50   out << setprecision(16) << position;
51 }
52 
GetPoint()53 Vect3 FixedPoint::GetPoint(){
54   return position;
55 }
56