Trigonometry in right triangles