Skip to content

Commit 10a671c

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 5a5ecf8 + bd612b9 commit 10a671c

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

src/elements/SpotLight.java

+13-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,21 @@
33
import primitives.Color;
44
import primitives.Point3D;
55
import primitives.Vector;
6-
6+
/**
7+
* The type Spot light.
8+
*/
79
public class SpotLight extends PointLight {
810
private Vector _direction;
9-
11+
/**
12+
* Instantiates a new Spot light.
13+
*
14+
* @param direction the directio
15+
* @param intensity the intensit
16+
* @param kC the kC
17+
* @param kL the kL
18+
* @param kQ the kQ
19+
* @param position the position
20+
*/
1021
public SpotLight(Color intensity, Point3D position, Vector direction, double kC, double kL, double kQ) {
1122
super(intensity, position, kC, kL, kQ);
1223
_direction = new Vector(direction).normalized();

src/primitives/Material.java

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
11
package primitives;
22

3+
/**
4+
* Examines the factors of light reflected from the geometries.
5+
*/
36
public class Material {
47
double _kD;
58
double _kS;
69
int _nShininess;
710

8-
11+
/**
12+
* @param _kD the _kD
13+
* @param _kS the _kS
14+
* @param _nShininess the _nShininess
15+
*/
916
public Material(double _kD, double _kS, int _nShininess) {
1017
this._kD = _kD;
1118
this._kS = _kS;
1219
this._nShininess = _nShininess;
1320
}
1421

22+
/**
23+
* getters Material
24+
*
25+
* @return the _kD
26+
*/
1527
public double getKd() {
1628
return _kD;
1729
}
18-
30+
/**
31+
* @return the _kS
32+
*/
1933
public double getKs() {
2034
return _kS;
2135
}
22-
36+
/**
37+
* @return the _nShininess
38+
*/
2339
public int getnShininess() {
2440
return _nShininess;
2541
}

0 commit comments

Comments
 (0)