hammersley2D

fun hammersley2D(i: Int, n: Int): Vector2(source)

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

Return

A 2D point as a Vector2 within the unit square 0, 1 x 0, 1.

Parameters

i

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

n

The total number of samples.