Polarized X-rays reveal shape, orientation of extremely hot matter around black hole