Line#midPoint()

midPoint(out) → {Phaser.Point}

Returns a Point object where the x and y values correspond to the center (or midpoint) of the Line segment.

Parameters
Name Type Argument Description
out Phaser.Point <optional>

A Phaser.Point object into which the result will be populated. If not given a new Point object is created.

Returns

A Phaser.Point object with the x and y values set to the center of the line segment.

Source code: geom/Line.js (Line 182)
doc_phaser
2017-02-14 10:54:00
Comments
Leave a Comment

Please login to continue.