Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | Properties | List of all members
SimplexNoise Class Reference

Static Public Member Functions

static double noise (double xin, double yin, double zin)
 
static double noise (Vector3d v3d)
 
static double noise (double octaves, double persistence, double frequency, double x, double y, double z)
 
static double noise (double octaves, double persistence, double frequency, Vector3d v3d)
 

Properties

static int seed [set]
 

Member Function Documentation

static double SimplexNoise.noise ( double  xin,
double  yin,
double  zin 
)
inlinestatic

< Very nice and simple skew factor for 3D

< Very nice and simple unskew factor, too

< Unskew the cell origin back to (x,y,z) space

< The x,y,z distances from the cell origin

< For the 3D case, the simplex shape is a slightly irregular tetrahedron.

< Offsets for second corner in (x,y,z) coords

< Offsets for third corner in (x,y,z) coords

< Offsets for last corner in (x,y,z) coords

< Work out the hashed gradient indices of the four simplex corners

< Calculate the contribution from the four corners

static double SimplexNoise.noise ( Vector3d  v3d)
inlinestatic
static double SimplexNoise.noise ( double  octaves,
double  persistence,
double  frequency,
double  x,
double  y,
double  z 
)
inlinestatic

< We have to keep track of the largest possible amplitude,

static double SimplexNoise.noise ( double  octaves,
double  persistence,
double  frequency,
Vector3d  v3d 
)
inlinestatic

Property Documentation

int SimplexNoise.seed
staticset

The documentation for this class was generated from the following file: