function Ray(orig, dir, col){
	this.Origin = new Vector(orig.x,orig.y,orig.z);
	(this.Direction = new Vector(dir.x, dir.y, dir.z)).normalize();
	this.Color = new RGB(col.r,col.g,col.b);
}
Ray.prototype.trace = function(t){ this.Origin.x+=t*this.Direction.x; this.Origin.y+=t*this.Direction.y; this.Origin.z+=t*this.Direction.z; }
Ray.prototype.setDirection = function(vect){ this.Direction = (new Vector(vect.x, vect.y, vect.z)).normalize(); }
