Well, the reason why she turned you down could be manyfold. However, I suspect that one factor would be time. You haven't seen this girl since a math class some time ago, right? So, while you seem to remember her well, she may not remember you as well as you do her. So, she may have been a little weirded out since a guy she hadn't seen for a while suddenly approaches and is like, "Hey, let's make out/other stuff".
Also, you don't seem to have included how she reacted to you. You seem to like her(because of common interests like xkcd and whatnot), but she also may not have been into you as you were into her.
May or may not be the case, but that's all I can tell from what you've provided.