Elements of geometry and trigonometry from the works of A.M. Legendre