You should use 2D vectors rather than slopes. That way "infinite slope" is just the vector <0,1> which can be used in calculations without problems.
Post a reply to this message