simplex

fun simplex(seed: Int, x: Double): Double(source)
fun simplex(seed: Int, position: Vector2): Double(source)
fun simplex(seed: Int, position: Vector3): Double(source)


fun simplex(seed: Int, x: Double, y: Double): Double(source)

Computes a 2D simplex noise value for given coordinates and seed.

Return

The 2D simplex noise value for the given coordinates and seed.

Parameters

seed

The seed value used for generating the noise.

x

The x-coordinate in 2D space for which the noise value is calculated.

y

The y-coordinate in 2D space for which the noise value is calculated.


fun Vector2.Companion.simplex(seed: Int, x: Double): Vector2(source)

Generates a 2D simplex noise vector based on the given seed and input position.

Return

A Vector2 object representing the 2D noise values at the given position.

Parameters

seed

The seed value used to generate deterministic noise.

x

The x-coordinate for the noise generation.


fun simplex(seed: Int, x: Double, y: Double, z: Double): Double(source)

Computes a 3D simplex noise value for the given coordinates and seed.

Return

The computed 3D simplex noise value as a Double.

Parameters

seed

The seed value used for generating consistent noise values.

x

The x-coordinate of the point in 3D space.

y

The y-coordinate of the point in 3D space.

z

The z-coordinate of the point in 3D space.


fun Vector3.Companion.simplex(seed: Int, x: Double): Vector3(source)

Generates a 3D vector using simplex noise based on the given seed and x-coordinate.

Return

A 3D vector where each component is a noise value calculated based on the given seed and coordinate.

Parameters

seed

The seed value used for generating consistent noise values.

x

The x-coordinate of the point in 3D space to calculate the noise value.


fun simplex(seed: Int, position: Vector4): Double(source)

Computes the 4D Simplex noise value at the given position and seed.

Return

The computed noise value as a Double.

Parameters

seed

A unique seed value used to generate the noise. Different seed values produce different noise patterns.

position

A 4D vector containing the (x, y, z, w) coordinates where the noise value should be computed.


fun simplex(seed: Int, x: Double, y: Double, z: Double, w: Double): Double(source)

Generates a 4D Simplex noise value based on the given coordinates and seed.

Return

A double representing the calculated 4D Simplex noise value at the given coordinates.

Parameters

seed

An integer used to initialize the noise generation.

x

The x-coordinate in 4D space.

y

The y-coordinate in 4D space.

z

The z-coordinate in 4D space.

w

The w-coordinate in 4D space.


fun Vector4.Companion.simplex(seed: Int, x: Double): Vector4(source)

Generates a 4D vector using Simplex noise based on the given seed and 1D input. Each component of the vector is generated by shifting the input x-coordinate for different noise values.

Return

A Vector4 where each component is a 4D Simplex noise value.

Parameters

seed

An integer used to initialize the noise generation process.

x

The x-coordinate for generating the Simplex noise in 4D space.