Elements of geometry, plane and spherical trigonometry, and conic sections