<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKNoise/rotate(by:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKNoise(im)rotateBy:"
  },
  "title" : "rotate(by:)"
}
-->

# rotate(by:)

Rotates the entire noise field by the specified x, y, and z angles.

```
func rotate(by radians: vector_double3)
```

## Parameters

`radians`

A vector whose x, y, and z components each provide a rotation angle in radians around the corresponding axis in the noise field.

## Discussion

A noise field is inherently three-dimensional and infinite in extent; when you create a [`GKNoiseMap`](/documentation/GameplayKit/GKNoiseMap) object from a noise object, the resulting array of noise values is a “slice” of the noise field (through its `z = 0` plane, with a specified size and position). By translating, rotating, and scaling the noise field in 3D before you create a noise map, you can create interesting effects. For example, applying an x- or y-axis rotation to noise generated by a [`GKCylindersNoiseSource`](/documentation/GameplayKit/GKCylindersNoiseSource) object “slices” along the length of the cylinders, creating a wood-grain pattern.

![](images/com.apple.gameplaykit/media-2556431@2x.png)

---

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)