translate

Translates the point along the x and y axis.

Parameters

dx Number

The distance to move along the X axis.

dy Number

The distance to move along the Y axis.

Returns

kendo.geometry.Point The current point instance.

Example

<script>
var geom = kendo.geometry;
var point = new geom.Point(10, 20);

console.log("Before translate:", point.toString()); // outputs: "10 20"
point.translate(5, 10);
console.log("After translate:", point.toString()); // outputs: "15 30"
</script>
In this article
translate
Not finding the help you need?
Contact Support