Point#Point

new Point(x, y)

A Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
The following code creates a point at (0,0):
var myPoint = new Phaser.Point();
You can also use them as 2D Vectors and you'll find different vector related methods in this class.

Parameters
Name Type Argument Default Description
x number <optional>
0

The horizontal position of this Point.

y number <optional>
0

The vertical position of this Point.

Source code: geom/Point.js (Line 18)
doc_phaser
2017-02-14 11:05:30
Comments
Leave a Comment

Please login to continue.