예제 #1
0
 public Vector3D(Normal3D rhs)
 {
     x = rhs.x;
     y = rhs.y;
     z = rhs.z;
     w = 0;
 }
예제 #2
0
        ShadeRec(ShadeRec sr)
        {
	        hit_an_object = (sr.hit_an_object);
		material_ptr = (sr.material_ptr);
		hit_point = (sr.hit_point);
		local_hit_point = (sr.local_hit_point);
		normal = (sr.normal);
		ray = (sr.ray);
		depth = (sr.depth);
		color = (sr.color);
		t = (sr.t);
		u = (sr.u);
		v = (sr.v);
        w = (sr.w);

        }
예제 #3
0
        World w;					// world reference

        ShadeRec(World wr)					// constructor
        {
            	hit_an_object = false;
		material_ptr = null;
		hit_point = new Point3D();
		local_hit_point = new Point3D();
		normal = new Normal3D();
		ray = new Ray();
		depth = 0;
		color = new ColorRGB(0,0,0);
		t = (0.0);
		u = (0.0f);
		v = (0.0f);
		w = (wr);

        }