function Plane(cen,normal,col,refl, refr, noise){
	this.Center = new Vector(cen.x,cen.y,cen.z);
	this.Color = new RGB(col.r,col.g,col.b);

	(this.Normal = normal).normalize();

	this.reflective = refl;
	this.refractive = refr;
	this.noise = noise;
}
Plane.prototype.getType = function(){ return "plane"; }
Plane.prototype.collision = function(ray){ return (t=(new Vector(this.Center.x-ray.Origin.x, this.Center.y-ray.Origin.y, this.Center.z-ray.Origin.z)).dotProduct(this.Normal)/ray.Direction.dotProduct(this.Normal))>0?t:-1; }