# Rotation.AlmostEqual

```csharp
bool AlmostEqual(in Rotation r, float delta = 1E-05)
```

Returns true if we're nearly equal to the passed rotation.
Checks if each component is within a threshold, and handles the fact that
there are two ways to represent the same rotation as a quaternion.

### Parameters

- `in r` (`Rotation`): The value to compare with
- `delta` (`float`), default `1E-05`: Per-component threshold.

### Returns

`bool`: True if nearly equal

Declared in [Rotation](/api/Rotation).
Assembly: `Sandbox.System`.
