-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRadialGeometry.java
More file actions
46 lines (35 loc) · 829 Bytes
/
Copy pathRadialGeometry.java
File metadata and controls
46 lines (35 loc) · 829 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
41
42
43
44
45
46
package geometries;
import primitives.Color;
import primitives.Material;
abstract class RadialGeometry extends Geometry {
protected double _radius;
// ***************** Constructors ********************** //
/**
* construct radial geometry with radius
*
* @param radius
*/
public RadialGeometry(double radius, Color color, Material material) {
super(color, material);
_radius = radius;
}
/**
* copy constructor
*
* @param other
*/
public RadialGeometry(RadialGeometry other) {
super(other);
_radius = other._radius;
}
// ***************** Getters/Setters ********************** //
public double radius() {
return _radius;
}
public Color emmission() {
return _emmission;
}
public Material material() {
return _material;
}
}