equals

Compares this transformation with another instance.

Parameters

other kendo.geometry.Transformation

The transformation to compare with.

Returns

Boolean true if the transformation matrix is the same; false otherwise.

Example

<script>
var geom = kendo.geometry;
var transform1 = geom.transform().translate(10, 20).scale(2, 2);
var transform2 = geom.transform().translate(10, 20).scale(2, 2);
var transform3 = geom.transform().translate(5, 10).scale(1, 1);

console.log('transform1 equals transform2:', transform1.equals(transform2)); // true
console.log('transform1 equals transform3:', transform1.equals(transform3)); // false
</script>
In this article
equals
Not finding the help you need?
Contact Support