Fixed issues with compilation.
[IRC.git] / Robust / src / Benchmarks / Scheduling / GC / NON_BAMBOO / RayTracer / Primitive.java
1 package RayTracer;
2
3 /**************************************************************************
4  *                                                                         *
5  *             Java Grande Forum Benchmark Suite - Version 2.0             *
6  *                                                                         *
7  *                            produced by                                  *
8  *                                                                         *
9  *                  Java Grande Benchmarking Project                       *
10  *                                                                         *
11  *                                at                                       *
12  *                                                                         *
13  *                Edinburgh Parallel Computing Centre                      *
14  *                                                                         *
15  *                email: epcc-javagrande@epcc.ed.ac.uk                     *
16  *                                                                         *
17  *                 Original version of this code by                        *
18  *            Florian Doyon (Florian.Doyon@sophia.inria.fr)                *
19  *              and  Wilfried Klauser (wklauser@acm.org)                   *
20  *                                                                         *
21  *      This version copyright (c) The University of Edinburgh, 1999.      *
22  *                         All rights reserved.                            *
23  *                                                                         *
24  **************************************************************************/
25
26
27 public class Primitive
28 {
29   public Surface        surf;
30
31   public Primitive(){
32     surf=new Surface();
33   }
34
35   public void setColor(float r, float g, float b) {
36     surf.color = new Vec(r, g, b);
37   }
38
39   public /*abstract*/ Vec normal(Vec pnt);
40   public /*abstract*/ Isect intersect(Ray ry);
41   public /*abstract*/ String toString();
42   public /*abstract*/ Vec getCenter();
43   public /*abstract*/ void setCenter(Vec c);
44
45 }