summaryrefslogtreecommitdiff
path: root/assets/viz/2/goog/math/coordinate.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/viz/2/goog/math/coordinate.js')
-rw-r--r--assets/viz/2/goog/math/coordinate.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/viz/2/goog/math/coordinate.js b/assets/viz/2/goog/math/coordinate.js
index a08b9cb..0dc2469 100644
--- a/assets/viz/2/goog/math/coordinate.js
+++ b/assets/viz/2/goog/math/coordinate.js
@@ -67,6 +67,17 @@ if (goog.DEBUG) {
/**
+ * Returns whether the specified value is equal to this coordinate.
+ * @param {*} other Some other value.
+ * @return {boolean} Whether the specified value is equal to this coordinate.
+ */
+goog.math.Coordinate.prototype.equals = function(other) {
+ return other instanceof goog.math.Coordinate &&
+ goog.math.Coordinate.equals(this, other);
+};
+
+
+/**
* Compares coordinates for equality.
* @param {goog.math.Coordinate} a A Coordinate.
* @param {goog.math.Coordinate} b A Coordinate.