The geometry of relativity