Isotope.Noise.get_noise
You're seeing just the function
get_noise
, go back to Isotope.Noise module for more information.
Specs
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} = Isotope.Noise.new()
iex> Isotope.Noise.get_noise(noise, {10.0, 10.0})
-0.6350845098495483
iex> {:ok, noise} = Isotope.Noise.new()
iex> Isotope.Noise.get_noise(noise, {10.0, 10.0, 10.0})
-0.1322503685951233