Created
March 21, 2016 18:36
-
-
Save daynebatten/18d1ec9957941884d326 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 (fileBroken) { | |
return 1.0f; | |
} else if (start == end) { | |
return 0.0f; | |
} else { | |
return Math.min(1.0f, (getFilePosition() - start) / (float)(end - start)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment