public Plane(Vector3D pos, double d, BaseMaterial material) { this.position = pos; this.d = d; this.material = material; }
public Sphere(Vector3D pos, double radius, BaseMaterial material) { this.radius = radius; this.position = pos; this.material = material; }