equals
Compares this rectangle with another instance.
Example
<script>
var geom = kendo.geometry;
var rect1 = new geom.Rect([10, 20], [30, 40]);
var rect2 = new geom.Rect([10, 20], [30, 40]);
var rect3 = new geom.Rect([5, 15], [30, 40]);
console.log("rect1 equals rect2:", rect1.equals(rect2)); // true
console.log("rect1 equals rect3:", rect1.equals(rect3)); // false
</script>
Parameters
other kendo.geometry.Rect
The rectangle to compare with.
Returns
Boolean
true if the origin and size is the same for both rectangles; false otherwise.
In this article