Rename ol.vec.Mat4.equal2D to ol.vec.Mat4.equals2D

This commit is contained in:
Tom Payne
2013-12-01 21:42:28 +01:00
parent 2ba5cf6167
commit 3ab00704d8
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ ol.render.canvas.Replay.prototype.replay =
function(context, transform, renderGeometryFunction) {
/** @type {Array.<number>} */
var pixelCoordinates;
if (ol.vec.Mat4.equal2D(transform, this.renderedTransform_)) {
if (ol.vec.Mat4.equals2D(transform, this.renderedTransform_)) {
pixelCoordinates = this.pixelCoordinates_;
} else {
pixelCoordinates = ol.geom.flat.transform2D(

View File

@@ -39,7 +39,7 @@ ol.vec.Mat4.makeTransform2D = function(mat, translateX1, translateY1,
* @param {goog.vec.Mat4.AnyType} mat2 Matrix 2.
* @return {boolean} Equal 2D.
*/
ol.vec.Mat4.equal2D = function(mat1, mat2) {
ol.vec.Mat4.equals2D = function(mat1, mat2) {
return (
goog.vec.Mat4.getElement(mat1, 0, 0) ==
goog.vec.Mat4.getElement(mat2, 0, 0) &&