# Atan2(float, float)

> Calculate the arc-tangent i.e. the angle of the provided slope y/x. This operates as deterministically as possible across platforms.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static float Atan2(float y, float x)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The Y axis.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The X axis.

### Returns

| Type                                                          | Description           |
| ------------------------------------------------------------- | --------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The angle in radians. |
