<!--
{
  "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/Magnitude",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_magnitude_vector2"
  },
  "title" : "Magnitude"
}
-->

# Magnitude

Outputs the float magnitude of a vector.

## Parameter Types

**Magnitude (vector2f):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector2f|

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

**Magnitude (vector4h):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector4h|

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

**Magnitude (vector4f):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector4f|

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

**Magnitude (vector2h):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector2h|

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

**Magnitude (vector3h):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector3h|

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

**Magnitude (vector3f):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector3f|

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

---

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)