mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Added Line.getPointA and getPointB methods.
This commit is contained in:
parent
3618214331
commit
3d323836be
1 changed files with 10 additions and 0 deletions
|
@ -28,6 +28,16 @@ Line.prototype = {
|
|||
this.y2 = y2;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
getPointA: function ()
|
||||
{
|
||||
return { x1: this.x1, y1: this.y1 };
|
||||
},
|
||||
|
||||
getPointB: function ()
|
||||
{
|
||||
return { x1: this.x2, y1: this.y2 };
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue