gradCoord3D

fun gradCoord3D(seed: Int, x: Int, y: Int, z: Int, xd: Double, yd: Double, zd: Double): Double(source)

Computes a gradient dot-product noise value for 3D coordinates based on the given seed and position inputs.

Return

The computed gradient dot-product noise value as a Double.

Parameters

seed

The seed value used to generate the pseudo-random gradient.

x

The x-coordinate of the position in 3D space.

y

The y-coordinate of the position in 3D space.

z

The z-coordinate of the position in 3D space.

xd

The x-offset or displacement in 3D space.

yd

The y-offset or displacement in 3D space.

zd

The z-offset or displacement in 3D space.