diff --git a/src/geometry/Point.js b/src/geometry/Point.js index e749c18a..a976e1b4 100644 --- a/src/geometry/Point.js +++ b/src/geometry/Point.js @@ -84,6 +84,11 @@ L.Point.prototype = { return Math.sqrt(x * x + y * y); }, + equals: function (point) { + return point.x === this.x && + point.y === this.y; + }, + toString: function () { return 'Point(' + L.Util.formatNum(this.x) + ', ' +