A Substitute for Euclid