-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParticle.h
More file actions
37 lines (27 loc) · 834 Bytes
/
Copy pathParticle.h
File metadata and controls
37 lines (27 loc) · 834 Bytes
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
#ifndef PARTICLE_H
#define PARTICLE_H
#include "Vector3.h"
class Particle {
private:
Vector3 location;
Vector3 velocity;
double mass;
double charge;
Vector3 color;
double size;
public:
Particle();
Particle(const Vector3 &location);
Particle(const Vector3 &location, const Vector3 &velocity, double mass,
double charge, const Vector3 &color, double size);
Vector3 GetColor() const;
double GetSize() const;
Vector3 GetLocation() const;
Vector3 GetVelocity() const;
double GetMass() const;
double GetCharge() const;
Particle ApplyAcceleration(Vector3 acceleration);
Particle operator*(double constant);
Particle operator+(const Particle &particle);
};
#endif