---
title: "vSrot(_:_:_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vsrot(_:_:_:_:_:)"
---

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

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

## Declaration

```swift
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

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

## See Also

### Vector-Scalar Linear Algebra Functions (from vectorOps.h)

- [vIsamax(_:_:)](accelerate/visamax(_:_:).md)
- [vIsamin(_:_:)](accelerate/visamin(_:_:).md)
- [vIsmax(_:_:)](accelerate/vismax(_:_:).md)
- [vIsmin(_:_:)](accelerate/vismin(_:_:).md)
- [vSasum(_:_:)](accelerate/vsasum(_:_:).md)
- [vSsum(_:_:)](accelerate/vssum(_:_:).md)
- [vSaxpy(_:_:_:_:)](accelerate/vsaxpy(_:_:_:_:).md)
- [vSnaxpy(_:_:_:_:_:)](accelerate/vsnaxpy(_:_:_:_:_:).md)
- [vScopy(_:_:_:)](accelerate/vscopy(_:_:_:).md)
- [vSdot(_:_:_:)](accelerate/vsdot(_:_:_:).md)
- [vSndot(_:_:_:_:_:_:)](accelerate/vsndot(_:_:_:_:_:_:).md)
- [vSnrm2(_:_:)](accelerate/vsnrm2(_:_:).md)
- [vSnorm2(_:_:)](accelerate/vsnorm2(_:_:).md)
- [vSscal(_:_:_:)](accelerate/vsscal(_:_:_:).md)
- [vSswap(_:_:_:)](accelerate/vsswap(_:_:_:).md)
