Perlin noise: Difference between revisions
remove non-breakable whitespaces
m (Aligning texr.) |
(remove non-breakable whitespaces) |
||
Line 1:
{{task}}
The
The Perlin noise is basically a
Either by using a dedicated library or by implementing the algorithm, show that the Perlin noise (as defined in 2002 in the Java implementation below) of the point in 3D-space with coordinates 3.14, 42, 7 is 0.13691995878400012.▼
▲Either by using a dedicated library or by implementing the algorithm, show that the Perlin noise
''Note: this result assumes 64 bit IEEE-754 floating point calculations. If your language uses a different floating point representation, make a note of it and calculate the value accurate to 15 decimal places, or your languages accuracy threshold if it is less. Trailing zeros need not be displayed.''
Line 2,146 ⟶ 2,145:
=={{header|REXX}}==
{{trans|Go}}
Programming note:
<br>remainder is used for this task.
Line 2,196 ⟶ 2,195:
lerp(u, grad( pick(ab+1), x , ym, zm ), ,
grad( pick(bb+1), xm, ym, zm )))) /1</syntaxhighlight>
{{out|output|text=
(Output note:
(Note that REXX uses
<pre>
Perlin noise for the 3D point [3.14 42 7] ───► 0.136919958784
|