Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Point

setTo([x], [y])

Description:

Set the x and y coordinates of the point to the given values.

Parameters:

name type arguments Default description
x number <optional> 0

The x coordinate of this Point.

y number <optional> x

The y coordinate of this Point.

Returns:
Description:

This Point object.

Since: 3.0.0
Source: src/geom/point/Point.js (Line 63)