Swift: SKShapeNode's proportion of view: how to determine?

127 Views Asked by At

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?

0

There are 0 best solutions below