Rename ol.vec.Mat4.equal2D to ol.vec.Mat4.equals2D
This commit is contained in:
@@ -122,7 +122,7 @@ ol.render.canvas.Replay.prototype.replay =
|
|||||||
function(context, transform, renderGeometryFunction) {
|
function(context, transform, renderGeometryFunction) {
|
||||||
/** @type {Array.<number>} */
|
/** @type {Array.<number>} */
|
||||||
var pixelCoordinates;
|
var pixelCoordinates;
|
||||||
if (ol.vec.Mat4.equal2D(transform, this.renderedTransform_)) {
|
if (ol.vec.Mat4.equals2D(transform, this.renderedTransform_)) {
|
||||||
pixelCoordinates = this.pixelCoordinates_;
|
pixelCoordinates = this.pixelCoordinates_;
|
||||||
} else {
|
} else {
|
||||||
pixelCoordinates = ol.geom.flat.transform2D(
|
pixelCoordinates = ol.geom.flat.transform2D(
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ ol.vec.Mat4.makeTransform2D = function(mat, translateX1, translateY1,
|
|||||||
* @param {goog.vec.Mat4.AnyType} mat2 Matrix 2.
|
* @param {goog.vec.Mat4.AnyType} mat2 Matrix 2.
|
||||||
* @return {boolean} Equal 2D.
|
* @return {boolean} Equal 2D.
|
||||||
*/
|
*/
|
||||||
ol.vec.Mat4.equal2D = function(mat1, mat2) {
|
ol.vec.Mat4.equals2D = function(mat1, mat2) {
|
||||||
return (
|
return (
|
||||||
goog.vec.Mat4.getElement(mat1, 0, 0) ==
|
goog.vec.Mat4.getElement(mat1, 0, 0) ==
|
||||||
goog.vec.Mat4.getElement(mat2, 0, 0) &&
|
goog.vec.Mat4.getElement(mat2, 0, 0) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user