
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?

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?