equals

Compares this matrix with another instance.

Parameters

other kendo.geometry.Matrix

The matrix instance to compare with.

Returns

Boolean true if the matrix elements match; false otherwise.

Example

<script>
    var geom = kendo.geometry;
    var matrix1 = new geom.Matrix(1, 0, 0, 1, 10, 20);
    var matrix2 = new geom.Matrix(1, 0, 0, 1, 10, 20);
    var matrix3 = new geom.Matrix(2, 0, 0, 1, 10, 20);
    console.log("matrix1 equals matrix2:", matrix1.equals(matrix2)); // true
    console.log("matrix1 equals matrix3:", matrix1.equals(matrix3)); // false
</script>
In this article
equals
Not finding the help you need?
Contact Support