<!--
{
  "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:result:)-6j6xb",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vForceO5atan21x1y6resultyx_q_q0_ztAA0A6BufferRzAaHR_AA0a7MutableE0R0_Sf7ElementRtzSfAJRt_SfAJRt0_r1_lFZ"
  },
  "title" : "atan2(x:y:result:)"
}
-->

# atan2(x:y:result:)

Calculates the arctangent of each pair of elements in two vectors of single-precision values.

```
static func atan2<T, U, V>(x: T, y: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
```

## Parameters

`x`

The first input vector.

`y`

The second vector.

`result`

The output 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)