C# Class Graffiti.Math.Functions

Exibir arquivo Open project: ananthonline/graffiti

Public Methods

Method Description
Linear ( float time, float speed ) : float
Noise ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency ) : float
Noise2 ( float timeMilliSeconds, float baseline, float amplitude, float phase, float spacing = 2000f ) : float
Sawtooth ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency ) : float
Sawtooth ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency, float dutyCycle ) : float
Sine ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency ) : float
Square ( float time, float baseline, float amplitude, float phase, float frequency, float dutyCycle ) : float

Private Methods

Method Description
CosineInterpolate ( float y1, float y2, double mu ) : float
Functions ( ) : System
Noise ( float x ) : float
Value ( float timeMilliSeconds, float phase, float frequency ) : float

Method Details

Linear() public static method

public static Linear ( float time, float speed ) : float
time float
speed float
return float

Noise() public static method

public static Noise ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency ) : float
timeMilliSeconds float
baseline float
amplitude float
phase float
frequency float
return float

Noise2() public static method

public static Noise2 ( float timeMilliSeconds, float baseline, float amplitude, float phase, float spacing = 2000f ) : float
timeMilliSeconds float
baseline float
amplitude float
phase float
spacing float
return float

Sawtooth() public static method

public static Sawtooth ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency ) : float
timeMilliSeconds float
baseline float
amplitude float
phase float
frequency float
return float

Sawtooth() public static method

public static Sawtooth ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency, float dutyCycle ) : float
timeMilliSeconds float
baseline float
amplitude float
phase float
frequency float
dutyCycle float
return float

Sine() public static method

public static Sine ( float timeMilliSeconds, float baseline, float amplitude, float phase, float frequency ) : float
timeMilliSeconds float
baseline float
amplitude float
phase float
frequency float
return float

Square() public static method

public static Square ( float time, float baseline, float amplitude, float phase, float frequency, float dutyCycle ) : float
time float
baseline float
amplitude float
phase float
frequency float
dutyCycle float
return float