---
title: "scale(by:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gknoise/scale(by:)"
---

# scale(by:)

Scales the entire noise field by the specified x, y, and z factors.

## Declaration

```swift
func scale(by factor: vector_double3)
```

## Parameters

- `factor`: A vector whose x, y, and z components each provide a scale factor for the corresponding axis in the noise field.

## Discussion

Discussion A noise field is inherently three-dimensional and infinite in extent; when you create a 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 a non-uniform scale to noise generated by a GKVoronoiNoiseSource object creates patterns similar to water waves.

## See Also

### Applying Geometric Transformations

- [move(by:)](gameplaykit/gknoise/move(by:).md)
- [rotate(by:)](gameplaykit/gknoise/rotate(by:).md)
