Smooth 2D Noise Viewer
Perlin and Value Noise
Macros | Enumerations | Variables
Defines.h File Reference

Useful defines, constants, and types. More...

#include <math.h>

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 Enable use of constant M_PI in math.h. More...
 

Enumerations

enum class  eNoise { None , Perlin , Value }
 Perlin noise type. More...
 
enum class  eHash { Permutation , LinearCongruential , Std }
 Hash function type. More...
 
enum class  eDistribution {
  Uniform , Maximal , Cosine , Normal ,
  Exponential , Midpoint
}
 Distribution. More...
 
enum class  eSpline { None , Cubic , Quintic }
 Spline type. More...
 

Variables

const float PI = (float)M_PI
 Pi. More...
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 29 of file Defines.h.

Enumeration Type Documentation

◆ eDistribution

enum class eDistribution
strong

Enumerated type for probability distribution.

Definition at line 54 of file Defines.h.

◆ eHash

enum class eHash
strong

Enumerated type for hash function.

Definition at line 46 of file Defines.h.

◆ eNoise

enum class eNoise
strong

Enumerated type for Perlin noise.

Definition at line 38 of file Defines.h.

◆ eSpline

enum class eSpline
strong

Enumerated type for spline functions.

Definition at line 62 of file Defines.h.

Variable Documentation

◆ PI

const float PI = (float)M_PI

Definition at line 32 of file Defines.h.