setCenter
Sets the location of the circle center.
Parameters
value kendo.geometry.Point|Array
The new center Point or equivalent [x, y] array.
Returns
kendo.geometry.Point The location of the circle center.
Example
<script>
var geom = kendo.geometry;
var circle = new geom.Circle([10, 10], 5);
console.log(circle.center.x); // 10
console.log(circle.center.y); // 10
// Set new center using array notation
circle.setCenter([25, 30]);
console.log(circle.center.x); // 25
console.log(circle.center.y); // 30
// Set new center using Point instance
var newPoint = new geom.Point(50, 60);
circle.setCenter(newPoint);
console.log(circle.center.x); // 50
console.log(circle.center.y); // 60
</script>
In this article