math docs
    Preparing search index...

    Type Alias Permutation

    Seeded permutation and gradient tables that back a noise generator.

    All noise variants (simplex/perlin, 2D/3D/4D) share this same table shape, so each generator type is a structural alias of this. gradP holds the 3D gradients (used by 2D and 3D noise); gradP4 holds the 4D gradients.

    type Permutation = {
        gradP: vec3.Vec3[];
        gradP4: vec4.Vec4[];
        perm: number[];
    }
    Index
    gradP: vec3.Vec3[]
    gradP4: vec4.Vec4[]
    perm: number[]