-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPart.h
57 lines (48 loc) · 1.29 KB
/
Part.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _Part_
#define _Part_
#include <iostream>
#include "azar.h"
#include "Vect6.h"
class Part
{
private:
double nx,ny,nz,nvx,nvy,nvz,nm,nfx,nfy,nfz;
//double * part;
public:
Part();
Part(double,double,double,double,double,double,double,double,double,double);
//Part(double&,double&,double&,double,double,double,double,double,double,double); //para poder leer archivo
//Part(float&,float&,float&,double,double,double,double,double,double,double); //para poder leer archivo
~Part();
// Part & operator = ( const Part &);
double getx(){return nx;}
double gety(){return ny;}
double getz(){return nz;}
double getvx(){return nvx;}
double getvy(){return nvy;}
double getvz(){return nvz;}
double getm(){return nm;}
double getfx(){return nfx;}
double getfy(){return nfy;}
double getfz(){return nfz;}
void setx(double);
void sety(double);
void setz(double);
void setvx(double);
void setvy(double);
void setvz(double);
void setm(double);
void setfx(double);
void setfy(double);
void setfz(double);
Part setpart(Part);
Part getpart(Part c){return c;}
Part setfuerza(Part);
};
Part operator * (double,Part);
Part operator * (Part,double);
Part operator / (Part,double);
//Part operator = (Part,Part);
Part operator + (Part,Part);
std::ostream & operator << (std::ostream &, Part);
#endif