-
Notifications
You must be signed in to change notification settings - Fork 0
/
threedimensionalshape.h
37 lines (22 loc) · 1023 Bytes
/
threedimensionalshape.h
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
/***************************************************************************
threedimensionalshape.h - description
-------------------
begin : Tue Sep 12 2000
***************************************************************************/
#ifndef threedimensionalshape_h
#define threedimensionalshape_h
/*********************************************************************************/
/** **/
/** ThreeDimensionalShape.h - Header file for 3DShape abstract base class **/
/** **/
/*********************************************************************************/
#include "point3d.h"
#include "ray.h"
class ThreeDimensionalShape {
public:
int red, green, blue; // red, green, blue components of surface colour
double diffuse, specular; // reflection colour
virtual bool intersects(Ray* r, Point3d* cam) = 0;
virtual void calcNormal(Ray* norm, Point3d* inters) = 0;
};
#endif