Created
March 19, 2012 18:09
-
-
Save bjornharrtell/2122201 to your computer and use it in GitHub Desktop.
This works! :) and is now a one-liner! :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ((delta & 7) > 4) rightOf else leftOf |
It sure does, which also shortens the code in question to a one liner. Great work Peter! Reminds me that I want to understand bitwise operations better.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Testing on expression "delta & 7 > 4" should also work: