Returns the value at the specified position in the noise map’s discrete sample grid.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The position to query in the noise map’s grid of sampled noise values. Must be within the rectangle from
[0, 0]to the noise map’s
The value at the specified position.
When you create a noise map from a
GKNoise object, GameplayKit performs the noise generation and processing computations necessary to fill a discrete grid with noise samples. (You specify the size of the grid and its number of samples in the
init(_: initializer.) Use this method to get sample values from that grid.
You can also use the
interpolated method to query positions that are not on the discrete integer grid of samples.