<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vForce/atan2(x:y:)-h54u",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vForceO5atan21x1ySaySdGx_q_tAA0A6BufferRzAA0a7MutableD0R_Sd7ElementRtzSdAJRt_r0_lFZ"
  },
  "title" : "atan2(x:y:)"
}
-->

# atan2(x:y:)

Returns the arctangent of each pair of elements in two vectors of double-precision values.

```
static func atan2<U, V>(x: U, y: V) -> [Double] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
```

## Parameters

`x`

The first input vector.

`y`

The second input vector.

---

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)