FOUNDATIONS OF GEOMETRY AND TRIGONOMETRY