Trigonometry of right angled and non-right angled triangles