We present a three-dimensional cosmic shear analysis of the Hubble Space Telescope COSMOS survey, the largest ever optical imaging program performed in space. We have measured the shapes of galaxies for the telltale distortions caused by weak gravitational lensing and traced the growth of that signal as a function of redshift. Using both 2D and 3D analyses, we measure cosmological parameters Ω_m, the density of matter in the universe, and σ_8, the normalization of the matter power spectrum. The introduction of redshift information tightens the constraints by a factor of 3 and also reduces the relative sampling (or "cosmic") variance compared to recent surveys that may be larger but are only two-dimensional. From the 3D analysis, we find tha...