-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBall.cs
More file actions
45 lines (45 loc) · 947 Bytes
/
Copy pathBall.cs
File metadata and controls
45 lines (45 loc) · 947 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
namespace CollisionLab1
{
public class Ball
{
double vx, vy, posx, posy, ax, ay, radius;
public Ball(double p1, double p2, double v1, double v2, double a1, double a2, double r)
{
this.vx = v1;
this.vy = v2;
this.posx = p1;
this.posy = p2;
this.ax = a1;
this.ay = a2;
this.radius = r;
}
public double getvx()
{
return vx;
}
public double getvy()
{
return vy;
}
public double getposx()
{
return posx;
}
public double getposy()
{
return posy;
}
public double getax()
{
return ax;
}
public double getay()
{
return ay;
}
public double getradius()
{
return radius;
}
}
}