-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPoint.java
More file actions
40 lines (28 loc) · 745 Bytes
/
Point.java
File metadata and controls
40 lines (28 loc) · 745 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
public class Point{
private static int velocity;
private static int height;
private static int angle;
private static int x;
private static double g = 9.81;
public Point(int _velocity, int _height, int _angle, int _x){
velocity = _velocity;
height = _height;
angle = _angle;
x = _x;
}
public static int getVelocity(){ //Getter for velocity
return velocity;
}
public static int getHeight(){ //Getter for height
return height;
}
public static int getAngle(){ //Getter for angle
return angle;
}
public static int getX(){ //Getter for x-Position
return x;
}
public static double getG(){ //Getter for g=9.81 m/s^2
return g;
}
}