convert(_:from:)
Converts a point from scene coordinates to view coordinates.
Declaration
func convert(_ point: CGPoint, from scene: SKScene) -> CGPointParameters
- point:
A point in scene coordinates.
- scene:
A scene.
Return Value
The same point in the view’s coordinate system.
Discussion
This method performs the coordinate conversion as if the scene is presented inside the view.