dnoise

Returns a vector with each component containing a random number from -1 to 1. It works like the noise function except it expects and returns a vector argument. The returned vector represents the gradient of the noise field in three dimensions.

vector dnoise(vector argument)

argument specifies a vector for generating a random number. This gives a three-dimensional distribution of return values.

See the noise function for more details on dnoise operation.

Example

dnoise(<<10,20,-30>>)

Returns <<-0.185, 0.441, 0.686>>.