Skip to content

Instantly share code, notes, and snippets.

@PhilippeBoisney
Last active March 1, 2017 10:59
Show Gist options
  • Save PhilippeBoisney/a8b9bd370c875c509fbd95d69fa6ad48 to your computer and use it in GitHub Desktop.
Save PhilippeBoisney/a8b9bd370c875c509fbd95d69fa6ad48 to your computer and use it in GitHub Desktop.
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