pure-noise-0.1.0.0: Performant, modern noise generation for Haskell with minimal dependencies. Based on FastNoiseLite.
LicenseBSD-3-Clause
MaintainerJeremy Nuttall <jeremy@jeremy-nuttall.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageGHC2021

Numeric.Noise.Internal.Math

Description

 
Synopsis

Documentation

lerp Source #

Arguments

:: Num a 
=> a

start

-> a

end

-> a

parameter in range [0, 1]

-> a 

monotonic lerp

cubicInterp :: Num a => a -> a -> a -> a -> a -> a Source #

cubic interpolation

hermiteInterp :: Num a => a -> a Source #

hermite interpolation

quinticInterp :: Num a => a -> a Source #

quintic interpolation

clamp Source #

Arguments

:: Ord a 
=> a

lower bound

-> a

upper bound

-> a

value

-> a 

hash3 :: Seed -> Hash -> Hash -> Hash -> Hash Source #

g2 :: Fractional a => a Source #

valCoord3 :: RealFrac a => Word64 -> Hash -> Hash -> Hash -> a Source #

gradCoord2 :: RealFrac a => Seed -> Hash -> Hash -> a -> a -> a Source #

gradCoord3 :: RealFrac a => Seed -> Hash -> Hash -> Hash -> a -> a -> a -> a Source #