Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

assertRotationIsEqualTo

Asserts that the layout of this node has rotation that is equal to the given rotation.

assertRotationIsEqualTo

Source set: Android
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertRotationIsEqualTo(
    expected: Quaternion,
    tolerance: Float = 0.01f,
): SubspaceSemanticsNodeInteraction

Asserts that the layout of this node has rotation that is equal to the given rotation.

This assertion uses a tolerance to account for floating-point inaccuracies.

Parameters

expected The rotation to assert.
tolerance The maximum allowed angular distance in degrees between the orientations.

Last updated: