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)
Please login to continue.