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

# Rotate 2D

Rotates a Vector2 (Float) about the origin in 2D.

## Parameter Types

|Input   |Type    |
        |--------|--------|
        |`In`    |Vector2f|
        |`Amount`|Float   |

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

## Parameter descriptions

- `In`: The vector to rotate.
- `Amount`: The amount of degrees to rotate the `In` vector. A positive value rotates the `In` vector counterclockwise. The default value is `0`.

---

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)