Noisex.Noise.get_noise

You're seeing just the function get_noise, go back to Noisex.Noise module for more information.

Specs

get_noise(noise_ref(), point2d() | point3d()) :: float()

Returns the 2D or 3D noise value depending on axes. If axes is a 2-float tuple, it will return the 2D noise value for the point. If axes is a 3-float tuple, it will return the 3D noise value for the point.

iex> {:ok, noise} = Noisex.Noise.new()
iex> Noisex.Noise.get_noise(noise, {10.0, 10.0})
-0.6350845098495483

iex> {:ok, noise} = Noisex.Noise.new()
iex> Noisex.Noise.get_noise(noise, {10.0, 10.0, 10.0})
-0.1322503685951233