if the leg of a triangle