translate

Creates a transformation matrix for translation with the specified parameters.

Parameters

x Number

The distance to translate along the X axis.

y Number

The distance to translate along the Y axis.

Returns

kendo.geometry.Matrix The transformation matrix for the specified translation.

Example

<script>
    var geom = kendo.geometry;
    // Create a translation matrix to move by 50 pixels on X and 30 pixels on Y
    var translateMatrix = geom.Matrix.translate(50, 30);
    console.log("Translation matrix:", translateMatrix.toString());
</script>
In this article
translate
Not finding the help you need?
Contact Support