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

Module that blends the output of two source modules using the output of an weight module as the blending weight. More...

Inheritance diagram for LibNoise.Modifiers.Blend:
LibNoise.Math LibNoise.IModule

Public Member Functions

 Blend (IModule sourceModule1, IModule sourceModule2, IModule weightModule)
 Initialises a new instance of the Blend class. More...
 
double GetValue (Vector3d coordinate)
 
double GetValue (Vector3 coordinate)
 
double GetValue (double x, double y, double z)
 Returns the result of blending the output of the two source modules using the output of the weight module as the blending weight. More...
 

Properties

IModule SourceModule1 [get, set]
 The first module from which to retrieve noise to be blended. More...
 
IModule SourceModule2 [get, set]
 The second module from which to retrieve noise to be blended. More...
 
IModule WeightModule [get, set]
 The module from which to retrieve noise to be used as the blending weight. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from LibNoise.Math
static int ClampValue (int value, int lowerBound, int upperBound)
 Returns the given value clamped between the given lower and upper bounds. More...
 
static double GetLarger (double a, double b)
 Returns the larger of the two given numbers. More...
 
static double GetSmaller (double a, double b)
 Returns the smaller of the two given numbers. More...
 
static void SwapValues (ref double a, ref double b)
 Swaps the values contained by the two given variables. More...
 
- Static Public Attributes inherited from LibNoise.Math
static readonly double DEG_TO_RAD = PI / 180.0
 Returns PI/180.0, used for converting degrees to radians. More...
 
static readonly double PI = 3.1415926535897932385
 Returns the value of the mathematical constant PI. More...
 
static readonly double Sqrt2 = 1.4142135623730950488
 Returns the square root of 2. More...
 
static readonly double Sqrt3 = 1.7320508075688772935
 Returns the square root of 3. More...
 
- Protected Member Functions inherited from LibNoise.Math
double CubicInterpolate (double n0, double n1, double n2, double n3, double a)
 Returns the cubic interpolation of two values bound between two other values. More...
 
void LatLonToXYZ (double lat, double lon, ref double x, ref double y, ref double z)
 Provides the X, Y, and Z coordinates on the surface of a sphere cooresponding to the given latitude and longitude. More...
 
double LinearInterpolate (double n0, double n1, double a)
 Returns the linear interpolation of two values with the given alpha. More...
 
double SCurve3 (double a)
 Returns the given value, modified to be able to fit into a 32-bit integer. More...
 
double SCurve5 (double a)
 Returns the given value mapped onto a quintic S-curve. More...
 

Detailed Description

Module that blends the output of two source modules using the output of an weight module as the blending weight.

Constructor & Destructor Documentation

LibNoise.Modifiers.Blend.Blend ( IModule  sourceModule1,
IModule  sourceModule2,
IModule  weightModule 
)
inline

Initialises a new instance of the Blend class.

Parameters
sourceModule1The first module from which to retrieve noise to be blended.
sourceModule2The second module from which to retrieve noise to be blended.
weightModuleThe module from which to retrieve noise to be used as the blending weight.

Member Function Documentation

double LibNoise.Modifiers.Blend.GetValue ( Vector3d  coordinate)
inline

Implements LibNoise.IModule.

double LibNoise.Modifiers.Blend.GetValue ( Vector3  coordinate)
inline

Implements LibNoise.IModule.

double LibNoise.Modifiers.Blend.GetValue ( double  x,
double  y,
double  z 
)
inline

Returns the result of blending the output of the two source modules using the output of the weight module as the blending weight.

Implements LibNoise.IModule.

Property Documentation

IModule LibNoise.Modifiers.Blend.SourceModule1
getset

The first module from which to retrieve noise to be blended.

IModule LibNoise.Modifiers.Blend.SourceModule2
getset

The second module from which to retrieve noise to be blended.

IModule LibNoise.Modifiers.Blend.WeightModule
getset

The module from which to retrieve noise to be used as the blending weight.


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