Rectangle#offsetPoint()

offsetPoint(point) → {Phaser.Rectangle}

Adjusts the location of the Rectangle object using a Point object as a parameter. This method is similar to the Rectangle.offset() method, except that it takes a Point object as a parameter.

Parameters
Name Type Description
point Phaser.Point

A Point object to use to offset this Rectangle object.

Returns

This Rectangle object.

Source code: geom/Rectangle.js (Line 71)
doc_phaser
2017-02-14 11:07:01
Comments
Leave a Comment

Please login to continue.