-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvelocity.cpp
More file actions
45 lines (41 loc) · 722 Bytes
/
velocity.cpp
File metadata and controls
45 lines (41 loc) · 722 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
38
39
40
41
42
43
44
45
/********************************
* File: velocity.cpp
* Author: Ankita Dev
*
* The methods of the Velocity class.
********************************/
#include "velocity.h"
#include <iostream>
using namespace std;
/********************
* Constructors
********************/
Velocity::Velocity()
{
dx = 0;
dy = 0;
// accelerationX = 0;
// accelerationY = 0;
// countX = 0;
// countY = 0;
}
Velocity::Velocity(float dx, float dy)
{
this->dx = dx;
this->dy = dy;
// accelerationX = 0;
// accelerationY = 0;
// countX = 0;
// countY = 0;
}
/********************
* Setters
********************/
void Velocity::setDx(float dx)
{
this->dx = dx;
}
void Velocity::setDy(float dy)
{
this->dy = dy;
}