Skip to content

Commit c07ff59

Browse files
satellltejwagner
authored andcommitted
missing NoiseFunction4D return type
1 parent 12fabe6 commit c07ff59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplex-noise.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ export type NoiseFunction4D = (x: number, y: number, z: number, w: number) => nu
339339
/**
340340
* Creates a 4D noise function
341341
* @param random the random function that will be used to build the permutation table
342-
* @returns {NoiseFunction3D}
342+
* @returns {NoiseFunction4D}
343343
*/
344-
export function createNoise4D(random: RandomFn = Math.random) {
344+
export function createNoise4D(random: RandomFn = Math.random): NoiseFunction4D {
345345
const perm = buildPermutationTable(random);
346346
// precalculating these leads to a ~10% speedup
347347
const permGrad4x = new Float64Array(perm).map(v => grad4[(v % 32) * 4]);

0 commit comments

Comments
 (0)