Last active
March 1, 2017 10:59
-
-
Save PhilippeBoisney/a8b9bd370c875c509fbd95d69fa6ad48 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
var tmpX : CGFloat = pow(x,3) | |
tmpX.subtract(x.multiplied(by: 25)) | |
tmpX.multiply(by: subsWeights[index].x) | |
var tmpY : CGFloat = pow(x,3) | |
tmpY.subtract(x.multiplied(by: 20)) | |
tmpY.multiply(by: subsWeights[index].y) | |
let transform = CATransform3DTranslate(transform, tmpX, tmpY, 0 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment