-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindow3D.java
More file actions
71 lines (60 loc) · 1.2 KB
/
Window3D.java
File metadata and controls
71 lines (60 loc) · 1.2 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
63
64
65
66
67
68
69
70
71
/* Window3D.java
Ian Westrope
CS 324
HW #4
*/
public class Window3D
{
private double VP_xmin;
private double VP_ymin;
private double VP_xmax;
private double VP_ymax;
private double W_xmin;
private double W_ymin;
private double W_zmin;
private double W_xmax;
private double W_ymax;
private double W_zmax;
public Window3D( double vxmin, double vymin, double vxmax, double vymax,
double xmin, double ymin, double zmin,
double xmax, double ymax, double zmax )
{
VP_xmin = vxmin;
VP_ymin = vymin;
VP_xmax = vxmax;
VP_ymax = vymax;
W_xmin = xmin;
W_ymin = ymin;
W_zmin = zmin;
W_xmax = xmax;
W_ymax = ymax;
W_zmax = zmax;
}
public Window3D( double vxmin, double vymin, double vxmax, double vymax,
Point3D min, Point max )
{
VP_xmin = vxmin;
VP_ymin = vymin;
VP_xmax = vxmax;
VP_ymax = vymax;
W_xmin = min.GetX();
W_ymin = min.GetY();
W_zmin = min.GetZ();
W_xmax = max.GetX();
W_ymax = max.GetY();
W_zmax = max.GetZ();
}
public Window3D()
{
VP_xmin = 0.0;
VP_ymin = 0.0;
VP_xmax = 0.0;
VP_ymax = 0.0;
W_xmin = 0.0;
W_ymin = 0.0;
W_zmin = 0.0;
W_xmax = 0.0;
W_ymax = 0.0;
W_zmax = 0.0;
}
}