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

Rotate

class methods

Creates a transformation matrix for rotation with the specified parameters.

Parameters:angleNumber

The angle of rotation in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.

xNumber

The center of rotation on the X axis.

yNumber

The center of rotation on the Y axis.

Returns:kendo.geometry.Matrix

The transformation matrix for the specified rotation.

<script>
    var geom = kendo.geometry;
    // Create a rotation matrix for 45 degrees around point (100, 50)
    var rotateMatrix = geom.Matrix.rotate(45, 100, 50);
    console.log("Rotation matrix:", rotateMatrix.toString());
</script>
Not finding the help you need?
Contact Support