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
Afficher le fichier Open project: Keshire/Unity-polygon-map-generation

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Clear() public méthode

Clears the control points.
public Clear ( ) : void
Résultat void

Curve() public méthode

Initializes a new instance of Curve.
public Curve ( ) : System
Résultat System

Curve() public méthode

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

GetValue() public méthode

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.
Résultat double