NO matter how mad you are at your child there is NO EXCUSE for saying those things. Those are the things that stick and can possibly cause irreparable harm to ones self esteem among other things.
Some people are so self absorbed they havent the faintest idea that the things they are saying hurt. NO matter the circumstances, you dont deserve to be talked to that way. Keep your head up.