+package RayTracer;
+
/**************************************************************************
* *
* Java Grande Forum Benchmark Suite - Version 2.0 *
{
Vec c;
float r, r2;
-//Vec v,b; // temporary vecs used to minimize the memory load
+ //Vec v,b; // temporary vecs used to minimize the memory load
public Sphere(Vec center, float radius) {
c = center;
r = radius;
r2 = r*r;
-// v=new Vec();
-// b=new Vec();
+ // v=new Vec();
+ // b=new Vec();
}
public float dot(float x1, float y1, float z1, float x2, float y2, float z2){
ip = new Isect();
ip.t = t;
ip.enter = dot(x,y,z,x,y,z) > r2 + 1e-6 ? 1 : 0;
-// ip.enter = Vec.dot(v, v) > r2 + 1e-6 ? 1 : 0;
+ // ip.enter = Vec.dot(v, v) > r2 + 1e-6 ? 1 : 0;
ip.prim = this;
ip.surf = surf;
return ip;