My hat it has three corners

My hat, it has three corners,
Three corners has my hat
And had it not three corners,
It would not be my hat.