So wait, did he tell you that he was gay? Or bi? Or are you just projecting because you're pissed? Because nothing else you said in the question had anything to do with that. In fact, his entire convo about not wanting to lead you on ALSO has nothing to do with that and it just sounds like you took a cheap shot.
Sit yo' azz down.
On to more important things. You're upset because you thought there was more there than existed. I'm sorry to hear that. You're not the first and definitely won't be the last person to have that happen. However, as opposed to being angry, maybe you should just take it as one to grow on. Realize that moving forward, you need to think a little bit more about what you're going to do before going there with somebody. It's okay to be upset, but you have to realize the role you played here unless he totally duped you (which I honestly doubt is what happened).
At some point, being angry is a choice. You said you all had a convo and tried to clear the air. Which means that you know full well what happened and where you stand and what "went wrong". I'd suggest just mellowing out for a while and then accepting that mistakes happen and forgive yourself for getting caught up. Because I'm really not so sure why you're still angry unless its with yourself, which again, we all make mistakes. Forgive yourself, let it go, and try again with somebody else.
I'm in the OP. He just disappeared after what happened. I had to initiate the conversation. He never said "he didn't want to lead me on", that's my interjection. He just apologized after I confronted him.
But advice taken. I'm moving on.
Dont mess with a professor, SAY unless there was undeniable 'meant to be' attraction and he was single.
Most professor are married, or engaged. Ive got several 'hey want to get with me' vibes/looks/conversations from several professors, most were married, one was engaged. Yeah...who said phd professionals were any intelligent from other guys. They are all just opportunist (Im only referring to these cheating bastards tho).
That said, have you ever took the time to think that you ARENT the only person he is messing with? I mean, he has Im sure over 60 to 100 students per semester, as well as years in teaching experience. Or getting laid experience. Be cautious.
Move on and THINK before you act. Think hard. Like all college courses...Use critical thinking. Too many damn stupid people out there just using their groin and not their mind.
good luck.