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