clone

Creates a new instance with the same element values.

Returns

kendo.geometry.Matrix A new Matrix instance with the same element values.

Example

<script>
    var geom = kendo.geometry;
    var originalMatrix = new geom.Matrix(2, 0.5, 0.3, 1.5, 20, 15);
    var clonedMatrix = originalMatrix.clone();
    console.log("Original:", originalMatrix.toString());
    console.log("Cloned:", clonedMatrix.toString());
    console.log("Are they equal?", originalMatrix.equals(clonedMatrix)); // true
</script>
In this article
clone
Not finding the help you need?
Contact Support