-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathState.h
48 lines (33 loc) · 1.01 KB
/
State.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
/********************************************************
State.h
Header File for state vector class
Gina Guerrero - Fall 2013
********************************************************/
#ifndef _STATEVECTOR_H_
#define _STATEVECTOR_H_
#include "Vector.h"
class State {
private:
int nmaxp;
Vector3d *StateVector; // Vector of Vector3ds
public:
State();
~State();
void SetSize(int numofp);
State(const State& other);
State& operator= (const State& other);
Vector3d& operator[](int i);
State operator+ (const State& other);
State operator- (const State& other);
State operator* (const State& other);
State operator* (const double other);
State& operator+= (const State& other);
int GetSize();
void AddState(int indx, Vector3d center, Vector3d velocity);
void MoveState(int indx, int maxindx);
void RemoveState(int indx);
void GetState(int indx, Vector3d *c, Vector3d *v);
Vector3d GetCenter(int indx);
void PrintState(); // debugging
};
#endif