hammersley3D

fun hammersley3D(i: Int, n: Int): Vector3(source)

Computes a 3D point in the Hammersley sequence based on the given index and total number of samples.

Return

A 3D point as a Vector3 within the unit cube 0, 1 x 0, 1 x 0, 1.

Parameters

i

The index of the sample, typically in the range [0, n).

n

The total number of samples.