C# 클래스 LibNoise.Modifier.Curve

Noise module that maps the output value from a source module onto an arbitrary function curve. This noise module maps the output value from the source module onto an application-defined curve. This curve is defined by a number of control points; each control point has an input value that maps to an output value. Refer to the following illustration: To add the control points to this curve, call the AddControlPoint() method. Since this curve is a cubic spline, an application must add a minimum of four control points to the curve. If this is not done, the GetValue() method fails. Each control point can have any input and output value, although no two control points can have the same input value. There is no limit to the number of control points that can be added to the curve.
상속: ModifierModule, IModule3D
파일 보기 프로젝트 열기: everbytes/LibNoise

보호된 프로퍼티들

프로퍼티 타입 설명
_controlPoints List

공개 메소드들

메소드 설명
AddControlPoint ( ControlPoint point ) : void

Adds a control point to the curve. No two control points have the same input value. @throw System.ArgumentException if two control points have the same input value. It does not matter which order these points are added.

AddControlPoint ( float input, float output ) : void

Adds a control point to the curve. No two control points have the same input value. @throw System.ArgumentException if two control points have the same input value. It does not matter which order these points are added.

ClearControlPoints ( ) : void

Deletes all the control points on the curve.

CountControlPoints ( ) : int

Return the size of the ControlPoint list

Curve ( ) : System
Curve ( IModule source ) : System
GetValue ( float x, float y, float z ) : float

Generates an output value given the coordinates of the specified input value.

getControlPoints ( ) : IList

Returns a read-only IList wrapper for the current ControlPoint list.

보호된 메소드들

메소드 설명
SortControlPoints ( ) : void

메소드 상세

AddControlPoint() 공개 메소드

Adds a control point to the curve. No two control points have the same input value. @throw System.ArgumentException if two control points have the same input value. It does not matter which order these points are added.
public AddControlPoint ( ControlPoint point ) : void
point ControlPoint
리턴 void

AddControlPoint() 공개 메소드

Adds a control point to the curve. No two control points have the same input value. @throw System.ArgumentException if two control points have the same input value. It does not matter which order these points are added.
public AddControlPoint ( float input, float output ) : void
input float The input value stored in the control point.
output float The output value stored in the control point.
리턴 void

ClearControlPoints() 공개 메소드

Deletes all the control points on the curve.
public ClearControlPoints ( ) : void
리턴 void

CountControlPoints() 공개 메소드

Return the size of the ControlPoint list
public CountControlPoints ( ) : int
리턴 int

Curve() 공개 메소드

public Curve ( ) : System
리턴 System

Curve() 공개 메소드

public Curve ( IModule source ) : System
source IModule
리턴 System

GetValue() 공개 메소드

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y, float z ) : float
x float The input coordinate on the x-axis.
y float The input coordinate on the y-axis.
z float The input coordinate on the z-axis.
리턴 float

SortControlPoints() 보호된 메소드

protected SortControlPoints ( ) : void
리턴 void

getControlPoints() 공개 메소드

Returns a read-only IList wrapper for the current ControlPoint list.
public getControlPoints ( ) : IList
리턴 IList

프로퍼티 상세

_controlPoints 보호되어 있는 프로퍼티

protected List _controlPoints
리턴 List