-
Notifications
You must be signed in to change notification settings - Fork 0
/
Material.java
67 lines (58 loc) · 1.13 KB
/
Material.java
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
package primitives;
public class Material {
private double _Kd;
private double _Ks;
private double _Kr;
private double _Kt;
private int _nShininess;
private double _clarity;
// ***************** Constructors ********************** //
/***
* constructor
* @param kd
* @param ks
* @param nShininess
* @param kr
* @param kt
*/
public Material(double kd, double ks, int nShininess,double kr,double kt, double clarity) {
super();
_Kd = kd;
_Ks = ks;
_nShininess = nShininess;
_Kr = kr;
_Kt = kt;
_clarity = clarity;
}
// ***************** Getters/Setters ********************** //
public double kd() {
return _Kd;
}
public double ks() {
return _Ks;
}
public int nShininess() {
return _nShininess;
}
public double kr() {
return _Kr;
}
public double kt() {
return _Kt;
}
public void kd(double kd) {
_Kd = kd;
}
public void ks(double ks) {
_Ks = ks;
}
public void nShininess(int nShininess) {
_nShininess = nShininess;
}
public void kr(double kr) {
_Kr = kr;
}
public void kt(double kt) {
_Kt = kt;
}
}