<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vSrot(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vSrot"
  },
  "title" : "vSrot(_:_:_:_:_:)"
}
-->

# vSrot(_:_:_:_:_:)

Applies planar rotation to a set of n points whose x and y coordinates are contained in two arrays of vectors.

```
func vSrot(_ n: Int32, _ x: UnsafeMutablePointer<vFloat>, _ y: UnsafeMutablePointer<vFloat>, _ c: Float, _ s: Float)
```

## Parameters

`n`

number of points to be rotated; must be a multiple of 4.

`x`

vector with `n`/4 elements of type `vector float`, representing the x-coordinates of the points.

`y`

vector with `n`/4 elements of type `vector float`, representing the y-coordinates of the points.

`c`

cosine of the angle of rotation.

`s`

sine of the angle of rotation.

## Discussion

The coordinates are modified in place in the vectors in arrays `x` and `y`.

---

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)