From 2b4757367470d8e36bc00901dac567e375796ed4 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Nov 2018 00:24:09 -0500 Subject: update viz 2 to use the newest version, which has some performance improvements and is easier to read the code for. also update the description --- assets/viz/2/goog/math/coordinate.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'assets/viz/2/goog/math/coordinate.js') 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 @@ -66,6 +66,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. -- cgit v1.2.3