Repository navigation
Expand file tree
/
Copy pathcamera.java
More file actions
62 lines (54 loc) · 1.42 KB
/
Copy pathcamera.java
File metadata and controls
62 lines (54 loc) · 1.42 KB
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
61
62
//not to be graphed
/**
* @author Justin
* @version 5/222/3
* An object made to represent the camera, which is used when running the graph GUI
* to properly determine where everything should be translated
*/
public class camera extends graphable{
private double angleW;
private double angleL;
/**
* The main constructor for the camera object
* @param tX The X value for the camera
* @param tY The Y value for the camera
* @param tZ The Z value for the camera
* @param ang1 The angle value for width.
* @param ang2 The angle value for length.
* @param f The FOV value for width.
* @param f2 The FOV value for length.
*/
public camera (double tX, double tY, double tZ, double ang1, double ang2){
super(tX, tY, tZ);
angleW = ang1;
angleL = ang2;
}
/**
* getter method for accessing angleW(pan angle)
*/
public double getAngleW()
{
return angleW;
}
/**
* getter method for accessing angleL(tilt angle)
*/
public double getAngleL()
{
return angleL;
}
/**
* Setter method for width angle.
* @param newAng The new angle.
*/
public void setAngleW (double newAng){
angleW = newAng;
}
/**
* Setter method for length angle.
* @param newAng The new angle.
*/
public void setAngleL (double newAng){
angleL = newAng;
}
}