Instance Method

convertPoint:toScene:

Converts a point from view coordinates to scene coordinates.

Declaration

- (CGPoint)convertPoint:(CGPoint)point toScene:(SKScene *)scene;

Parameters

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.

See Also

Converting Between View and Scene Coordinates

- convertPoint:fromScene:

Converts a point from scene coordinates to view coordinates.