Created
May 14, 2016 04:12
-
-
Save diversario/a2920581648c8bcee59ff8cb2d62d2d5 to your computer and use it in GitHub Desktop.
Impulse multipler
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
let SCREEN_SCALE = UIScreen.mainScreen().scale | |
private let FAKE_PX_TO_M_RATIO: CGFloat = 80 | |
let IMPULSE = sqrt( | |
UIScreen.mainScreen().bounds.width * | |
SCREEN_SCALE * SCREEN_SCALE / | |
FAKE_PX_TO_M_RATIO | |
) * sqrt(SCREEN_SCALE) * 1.45 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment