hammersley4D

fun hammersley4D(i: Int, n: Int): Vector4(source)

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

Return

A 4D point as a Vector4 where each component lies within the range 0, 1.

Parameters

i

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

n

The total number of samples.