C# Class LibNoise.Unity.Operator.Curve

Provides a noise module that maps the output value from a source module onto an arbitrary function curve. [OPERATOR]
Inheritance: ModuleBase
Datei anzeigen Open project: Keshire/Unity-polygon-map-generation

Public Methods

Method Description
Add ( double input, double output ) : void

Adds a control point to the curve.

Clear ( ) : void

Clears the control points.

Curve ( ) : System

Initializes a new instance of Curve.

Curve ( ModuleBase input ) : System

Initializes a new instance of Curve.

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

Returns the output value for the given input coordinates.

Method Details

Add() public method

Adds a control point to the curve.
public Add ( double input, double output ) : void
input double The curves input value.
output double The curves output value.
return void

Clear() public method

Clears the control points.
public Clear ( ) : void
return void

Curve() public method

Initializes a new instance of Curve.
public Curve ( ) : System
return System

Curve() public method

Initializes a new instance of Curve.
public Curve ( ModuleBase input ) : System
input ModuleBase The input module.
return System

GetValue() public method

Returns the output value for the given input coordinates.
public GetValue ( double x, double y, double z ) : double
x double The input coordinate on the x-axis.
y double The input coordinate on the y-axis.
z double The input coordinate on the z-axis.
return double