New to Kendo UI for jQueryStart a free 30-day trial

Clone

methods

Creates a new instance with the same center and radius.

Returns:kendo.geometry.Circle

A new Circle instance with the same center and radius.

<script>
var geom = kendo.geometry;
var originalCircle = new geom.Circle([10, 20], 15);
var clonedCircle = originalCircle.clone();

console.log(clonedCircle.center.x); // 10
console.log(clonedCircle.center.y); // 20
console.log(clonedCircle.radius); // 15

// Verify they are separate instances
originalCircle.setRadius(30);
console.log(originalCircle.radius); // 30
console.log(clonedCircle.radius); // 15 (unchanged)
</script>
Not finding the help you need?
Contact Support