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
17float UniformHash(unsigned int x, unsigned int max);
18float ExpHash(unsigned int x, unsigned int max);
19float ExpHash(unsigned int x, unsigned int y, unsigned int m, float omega);
float ExpHash(unsigned int x, unsigned int max)
Exponentially distributed hash function.
Definition: ExponentialHash.cpp:43
float UniformHash(unsigned int x, unsigned int max)
Uniformly distributed hash function.
Definition: ExponentialHash.cpp:32