Disclaimer - I'm just trying to gain understanding. Not here to judge.

I was dating someone who... well, yeah. Sabotaged everything. We had been the closest we'd ever been - she was telling me how much she missed me etc, which she'd never done before. I thought we were making progress. All of a sudden, literally overnight, she raged at me in front of her family. On the way to the family home, we'd had what most people would call a "lover's tiff". When we got to the house, she erupted into anger in front of everyone. I thought she was joking, but she wasn't. 

Then she told me to "get out, you're making me angrier". I have never seen anyone get so angry, I was stunned. I looked around the room to see if anyone would say anything; no one did. I left. About an hour later, she messaged me telling me that I had disrespected her in front of her family, and needed to apologise. 

Bearing in mind that our disagreement took place away from the house, and she ranted in front of everyone alone, I didn't see what I was meant to have done. I was OK if she was annoyed at me, but I didn't get why she did that in front of everyone - those people didn't even know anything had happened until she did that. 

Anyway. She admitted to me many times before that that she sabotages things, and she did it once before with me although not as intense. 

She hasn't spoken to me since that. I am in class with her at uni, and she acts as if I don't exist. I tried to message her once, a few weeks back - I was blocked. 

I feel really hated and disliked, and can't understand why that happened, or why she's now ignoring and avoiding me. I am also in a lot of emotional pain and can't really work out how to get past this. 

Anyone relate to this kind of behaviour? (We're same sex, btw)