What do you think about me asking her if she actually likes me?
Why did you ask if she actually liked you?
I wanted to know if she was legitimately interested.
It's okay to ask people to clarify their feelings for you. You should continue to seek clarification in relationships with people so you don't rely on assumptions that can be harmful.
She did not give me the answer I wanted so now I will hit her to teach her a lesson.
You should never put your hands on a women, that is wrong. Instead you need to be mature and accept the honest answer that you received.