UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

43 lines 1.47 kB
/** * 1D simplex noise with derivative. * If the last argument is not null, the analytic derivative * is also calculated. * @param {number} x * @param {number[]} derivatives * @returns {number} */ export function sdnoise1(derivatives: number[], x: number): number; /** 2D simplex noise with derivatives. * If the last two arguments are not null, the analytic derivative * (the 2D gradient of the scalar noise field) is also calculated. * * @param {number} x * @param {number} y * @param {number[]} derivatives * @returns {number} */ export function sdnoise2(derivatives: number[], x: number, y: number): number; /** 3D simplex noise with derivatives. * If the last tthree arguments are not null, the analytic derivative * (the 3D gradient of the scalar noise field) is also calculated. * * @param {number} x * @param {number} y * @param {number} z * @param {number[]} derivatives * @returns {number} */ export function sdnoise3(derivatives: number[], x: number, y: number, z: number): number; /** * 4D simplex noise with derivatives. * If the last four arguments are not null, the analytic derivative * (the 4D gradient of the scalar noise field) is also calculated. * @param {number[]} derivatives * @param {number} x * @param {number} y * @param {number} z * @param {number} w * @returns {number} */ export function sdnoise4(derivatives: number[], x: number, y: number, z: number, w: number): number; //# sourceMappingURL=sdnoise.d.ts.map