Skip to content

Commit

Permalink
HxPoint: add toString() in underlying type
Browse files Browse the repository at this point in the history
  • Loading branch information
azrafe7 committed Oct 18, 2015
1 parent becd968 commit e192389
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hxGeomAlgo/HxPoint.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package hxGeomAlgo;
*
* @author azrafe7
*/
@:expose
abstract HxPoint(HxPointData) from HxPointData to HxPointData
{
public var x(get, set):Float;
Expand Down Expand Up @@ -74,5 +75,10 @@ class HxPointData
{
this.x = x;
this.y = y;
}

inline public function toString()
{
return '(${x}, ${y})';
}
}

0 comments on commit e192389

Please sign in to comment.