How right angled triangle is being used?