clone

Creates a new instance with the same transformation matrix.

Returns

kendo.geometry.Transformation A new Transformation instance with the same matrix.

Example

<script>
var geom = kendo.geometry;
var originalTransform = geom.transform().translate(10, 20).scale(2, 3);
var clonedTransform = originalTransform.clone();

console.log('Original and clone are different objects:', originalTransform !== clonedTransform);
console.log('But have the same matrix values:', originalTransform.equals(clonedTransform));
</script>
In this article
clone
Not finding the help you need?
Contact Support