Package-level declarations

Functions

Link copied to clipboard
fun <T : LinearType<T>> LinearRange1D<T>.hash(seed: Int, x: Int): T
fun <T : LinearType<T>> LinearRange2D<T>.hash(seed: Int, x: Int): T
fun <T : LinearType<T>> LinearRange3D<T>.hash(seed: Int, x: Int): T
fun <T : LinearType<T>> LinearRange4D<T>.hash(seed: Int, x: Int)

Computes a hashed value based on the provided seed and input, and generates a LinearType instance using the hash results.

Link copied to clipboard
fun <T : LinearType<T>> LinearRange1D<T>.uniform(random: Random = Random.Default): T

Generates a uniformly distributed random value within the range.

fun <T : LinearType<T>> LinearRange2D<T>.uniform(random: Random = Random.Default): T

Generates a random value within the 2D linear range based on a uniform distribution.

fun <T : LinearType<T>> LinearRange3D<T>.uniform(random: Random = Random.Default): T

Generates a uniform random value within the 3D linear range, based on the given random number generator.

fun <T : LinearType<T>> LinearRange4D<T>.uniform(random: Random = Random.Default): T

Generates a value of type T uniformly distributed within the 4D linear range.