0

enter image description here

In Swift, I would like to calculate how much in percentages the red SKShapeNode is of the (blue) SKScene layer. Can't find methods for determining shape area. Is there a way to calculate the area of SKShapeNode?

user3673836
  • 591
  • 1
  • 9
  • 23
  • not a great solution: make a physics body form the shape's path and use the `area` property –  Nov 26 '14 at 18:12
  • http://stackoverflow.com/questions/451426/how-do-i-calculate-the-surface-area-of-a-2d-polygon – CodeSmile Nov 26 '14 at 19:26

0 Answers0