C# 클래스 ManicDigger.MapTools.NoiseTools

Provides methods that assist when dealing with noise.
파일 보기 프로젝트 열기: henon/manic_digger 1 사용 예제들

공개 메소드들

메소드 설명
FindNoise1 ( int n, int seed ) : double

Finds the next noise.

FindNoise2 ( double x, double y, int seed ) : double

Returns number between -1 and 1.

GetNoise ( double x, double y, double z ) : double

???

Interpolate ( double a, double b, double x ) : double

Interpolates using a, b and x.

InterpolateNoise3d ( double x, double y, double z, int chunksize ) : double[,,]

Returns the interpolated three-dimensional noise for the given values.

Noise ( double x, double y, int seed ) : double

Runs the Noise function for the given x, y and seed values.

Trilinear ( double x, double y, double z, double f000, double f010, double f100, double f110, double f001, double f011, double f101, double f111 ) : double

???

메소드 상세

FindNoise1() 공개 정적인 메소드

Finds the next noise.
public static FindNoise1 ( int n, int seed ) : double
n int
seed int
리턴 double

FindNoise2() 공개 정적인 메소드

Returns number between -1 and 1.
public static FindNoise2 ( double x, double y, int seed ) : double
x double
y double
seed int
리턴 double

GetNoise() 공개 정적인 메소드

???
public static GetNoise ( double x, double y, double z ) : double
x double
y double
z double
리턴 double

Interpolate() 공개 정적인 메소드

Interpolates using a, b and x.
public static Interpolate ( double a, double b, double x ) : double
a double
b double
x double
리턴 double

InterpolateNoise3d() 공개 정적인 메소드

Returns the interpolated three-dimensional noise for the given values.
public static InterpolateNoise3d ( double x, double y, double z, int chunksize ) : double[,,]
x double
y double
z double
chunksize int
리턴 double[,,]

Noise() 공개 정적인 메소드

Runs the Noise function for the given x, y and seed values.
public static Noise ( double x, double y, int seed ) : double
x double
y double
seed int
리턴 double

Trilinear() 공개 정적인 메소드

???
public static Trilinear ( double x, double y, double z, double f000, double f010, double f100, double f110, double f001, double f011, double f101, double f111 ) : double
x double
y double
z double
f000 double
f010 double
f100 double
f110 double
f001 double
f011 double
f101 double
f111 double
리턴 double