header_utils
Loading...
Searching...
No Matches
ghassanpl::noise Namespace Reference

Shamelessly stolen from https://github.com/SRombauts/SimplexNoise/. More...

Functions

template<std::floating_point F>
constexpr F simplex_noise (F x)
 
template<std::floating_point F>
constexpr F simplex_noise (F x, F y)
 
template<std::floating_point F>
constexpr F fractal_simplex_noise (size_t octaves, F x, F frequency=F(1.0), F amplitude=F(1.0), F lacunarity=F(2.0), F persistence=F(0.5))
 
template<std::floating_point F>
constexpr F fractal_simplex_noise (size_t octaves, F x, F y, F frequency=F(1.0), F amplitude=F(1.0), F lacunarity=F(2.0), F persistence=F(0.5))
 
uint64_t SquirrelNoise3 (uint64_t seed, uint64_t position)
 Value Noise.
 
constexpr uint32_t SquirrelNoise5 (uint32_t seed, int32_t position)
 
constexpr uint32_t Get2dNoiseUint (int32_t indexX, int32_t indexY, uint32_t seed)
 
constexpr double Get1dNoiseZeroToOne (int32_t index, uint32_t seed)
 
constexpr double Get2dNoiseZeroToOne (int32_t indexX, int32_t indexY, uint32_t seed)
 

Detailed Description

Shamelessly stolen from https://github.com/SRombauts/SimplexNoise/.

Function Documentation

◆ fractal_simplex_noise() [1/2]

template<std::floating_point F>
constexpr F ghassanpl::noise::fractal_simplex_noise ( size_t  octaves,
F  x,
F  frequency = F(1.0),
F  amplitude = F(1.0),
F  lacunarity = F(2.0),
F  persistence = F(0.5) 
)
constexpr

Definition at line 163 of file noise.h.

◆ fractal_simplex_noise() [2/2]

template<std::floating_point F>
constexpr F ghassanpl::noise::fractal_simplex_noise ( size_t  octaves,
F  x,
F  y,
F  frequency = F(1.0),
F  amplitude = F(1.0),
F  lacunarity = F(2.0),
F  persistence = F(0.5) 
)
constexpr

Definition at line 181 of file noise.h.

◆ Get1dNoiseZeroToOne()

constexpr double ghassanpl::noise::Get1dNoiseZeroToOne ( int32_t  index,
uint32_t  seed 
)
constexpr

Definition at line 63 of file random_seq.h.

◆ Get2dNoiseUint()

constexpr uint32_t ghassanpl::noise::Get2dNoiseUint ( int32_t  indexX,
int32_t  indexY,
uint32_t  seed 
)
constexpr

Definition at line 57 of file random_seq.h.

◆ Get2dNoiseZeroToOne()

constexpr double ghassanpl::noise::Get2dNoiseZeroToOne ( int32_t  indexX,
int32_t  indexY,
uint32_t  seed 
)
constexpr

Definition at line 69 of file random_seq.h.

◆ simplex_noise() [1/2]

template<std::floating_point F>
constexpr F ghassanpl::noise::simplex_noise ( F  x)
constexpr

Definition at line 76 of file noise.h.

◆ simplex_noise() [2/2]

template<std::floating_point F>
constexpr F ghassanpl::noise::simplex_noise ( F  x,
F  y 
)
constexpr

Definition at line 98 of file noise.h.

◆ SquirrelNoise3()

uint64_t ghassanpl::noise::SquirrelNoise3 ( uint64_t  seed,
uint64_t  position 
)

Value Noise.

Definition at line 17 of file random_seq.h.

◆ SquirrelNoise5()

constexpr uint32_t ghassanpl::noise::SquirrelNoise5 ( uint32_t  seed,
int32_t  position 
)
constexpr

Definition at line 34 of file random_seq.h.