@EyeHawk, yes sorry about opening up such an old thread.
I've been looking for a good way to implement swipe gestures, and came across your equation to include an angle range. At present I'm just using set angles, which is quite limited!
Don't worry if you can't remember, I can just open up a new thread on the subject.
Thanks for your efforts though, it's really appreciated :)