rotateBy
Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
public suspend fun TransformableState.rotateBy(degrees: Float): Unit
Rotate without animation by a degrees degrees and suspend until it's set.
Parameters
| degrees | degrees by which to rotate |
rotateBy
Source set: Common
public suspend fun TransformableState.rotateBy(
degrees: Float,
centroid: Offset = Offset.Unspecified,
): Unit
Rotate without animation by a degrees degrees and suspend until it's set.
Parameters
| degrees | degrees by which to rotate |
| centroid | the Offset around which the rotation should occur, if any. The default value is Offset.Unspecified, which leaves the behavior up to the implementation of the TransformableState. |