New to KendoReact? Start a free 30-day trial

Represents a rotation transformation with angle and optional center point. Provides methods to convert to matrix form and create inverse transformations.

Definition

Package:@progress/kendo-react-diagram

Properties

angle

number

The rotation angle in radians.

x

number

The x coordinate of the rotation center.

y

number

The y coordinate of the rotation center.

A static instance representing zero rotation.

Methods

Gets the center point of the rotation.

Returns:

Point

A Point representing the rotation center

Creates a new Rotation instance from an existing rotation.

Parameters:rotationRotation

The rotation to copy

Returns:

Rotation

A new Rotation instance

Creates an inverted version of this rotation transformation.

Returns:

Rotation

A new Rotation with inverted angle

Parses a rotation from a string representation.

Parameters:strstring

The string to parse

Returns:

Rotation

A new Rotation instance

Converts the rotation transformation to a matrix representation.

Returns:

Matrix

A matrix representing the rotation transformation

Returns a string representation of the rotation transformation.

Returns:

string

String representation in CSS transform format