rotate

Sets rotation with the specified parameters.

Parameters

angle Number

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.

center Array|kendo.geometry.Point

The center of rotation.

Returns

kendo.geometry.Transformation The current transformation instance.

Example

<script>
var geom = kendo.geometry;
var transform = geom.transform();

// Rotate 45 degrees around center point (100, 100)
transform.rotate(45, [100, 100]);

// Or using a Point object
var centerPoint = new geom.Point(50, 50);
var transform2 = geom.transform().rotate(90, centerPoint);

console.log('Rotation applied with center at:', centerPoint.x, centerPoint.y);
</script>
In this article
rotate
Not finding the help you need?
Contact Support