Amortized Noise Terrain Generator
A Program to Generate Terrain from Amortized Noise with Exponentially Distributed Gradient Magnitude
ExponentialHash.h
Go to the documentation of this file.
1
3
4
// Copyright Ian Parberry, May 2014.
5
//
6
// This file is made available under the GNU All-Permissive License.
7
// Copying and distribution of this file, with or without modification,
8
// are permitted in any medium without royalty provided the copyright
9
// notice and this notice are preserved. This file is offered as-is,
10
// without any warranty.
11
//
12
// Created by Ian Parberry, May 2014.
13
// Last updated May 31, 2014.
14
15
#pragma once
16
17
float
UniformHash
(
unsigned
int
x,
unsigned
int
max);
18
float
ExpHash
(
unsigned
int
x,
unsigned
int
max);
19
float
ExpHash
(
unsigned
int
x,
unsigned
int
y,
unsigned
int
m,
float
omega);
ExpHash
float ExpHash(unsigned int x, unsigned int max)
Exponentially distributed hash function.
Definition:
ExponentialHash.cpp:43
UniformHash
float UniformHash(unsigned int x, unsigned int max)
Uniformly distributed hash function.
Definition:
ExponentialHash.cpp:32
Generated on Mon Nov 21 2022 15:24:30 for Amortized Noise Terrain Generator by
1.9.4