-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMouseTrapCar.cpp
62 lines (44 loc) · 970 Bytes
/
MouseTrapCar.cpp
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
57
58
59
60
//
// Created by Dallin Burton on 2/20/19.
//
#include <math.h>
#include "MouseTrapCar.h"
MouseTrapCar::MouseTrapCar() {
length = 0.0;
wheelDiameter = 0.0;
forwardWind = 0;
backwardWind =0;
mass = 0.0;
}
void MouseTrapCar::set_length(double _length) {
length = _length;
}
void MouseTrapCar::set_wheel_diameter(double _wheelDiameter) {
wheelDiameter = _wheelDiameter;
}
void MouseTrapCar::set_fwind(int _fWind) {
forwardWind = _fWind;
}
void MouseTrapCar::set_bwind(int _BWind) {
backwardWind = _BWind;
}
void MouseTrapCar::simulate() {
}
double MouseTrapCar::get_length() {
return length;
}
double MouseTrapCar::get_wheel_diameter() {
return wheelDiameter;
}
int MouseTrapCar::get_forward_wind() {
return forwardWind;
}
int MouseTrapCar::get_backward_wind() {
return backwardWind;
}
void MouseTrapCar::set_mass(double _mass) {
mass = _mass;
}
double MouseTrapCar::get_mass() {
return mass;
}