<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/Math/Atan2",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_atan2_float"
  },
  "title" : "Atan2"
}
-->

# Atan2

The arctangent of the expression (iny/inx) in radians.

## Parameter Types

**Atan2 (float):**

|Input|Type |
                |-----|-----|
                |`Iny`|Float|
                |`Inx`|Float|

|Output|Type |
                |------|-----|
                |`Out` |Float|

**Atan2 (half):**

|Input|Type|
                |-----|----|
                |`Iny`|Half|
                |`Inx`|Half|

|Output|Type|
                |------|----|
                |`Out` |Half|

**Atan2 (vector2h):**

|Input|Type    |
                |-----|--------|
                |`Iny`|Vector2h|
                |`Inx`|Vector2h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2h|

**Atan2 (vector3h):**

|Input|Type    |
                |-----|--------|
                |`Iny`|Vector3h|
                |`Inx`|Vector3h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3h|

**Atan2 (vector2f):**

|Input|Type    |
                |-----|--------|
                |`Iny`|Vector2f|
                |`Inx`|Vector2f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2f|

**Atan2 (vector4f):**

|Input|Type    |
                |-----|--------|
                |`Iny`|Vector4f|
                |`Inx`|Vector4f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4f|

**Atan2 (vector3f):**

|Input|Type    |
                |-----|--------|
                |`Iny`|Vector3f|
                |`Inx`|Vector3f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3f|

**Atan2 (vector4h):**

|Input|Type    |
                |-----|--------|
                |`Iny`|Vector4h|
                |`Inx`|Vector4h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4h|

## Overview

> Note: `Atan2` follows the MaterialX specification parameter names which may differ from the implementation used by content-creation apps.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)