Class: AxSineMechanism

AxSineMechanism(periodStart, periodEnd, amplitudeMin, amplitudeMax)

new AxSineMechanism(periodStart, periodEnd, amplitudeMin, amplitudeMax)

Creates a new sine mechanism The sine mechanism is a non-animate mechanism that produces a result of a sine function by a given argument
Parameters:
Name Type Description
periodStart Number The value at which the provided argument will produce the start of the sine function
periodEnd Number The value at which the provided argument will produce the end of the sine function
amplitudeMin Number The minimum value of the resulting sine function
amplitudeMax Number The peak value of the resulting sine function
Source:

Methods

Process(deltaTime) → {Boolean}

Performs the routines of the mechanism and returns whether the mechanism should continue to be processed the next frame
Parameters:
Name Type Description
deltaTime Number The time in milliseconds, between the previous and the current call. Used to perform time based routines
Source:
Returns:
True, if the mechanism hasn't finished its job and should continue to be processed in the next frame
Type
Boolean

Documentation generated by JSDoc 3.5.3 on Mon Feb 19 2018 20:39:27 GMT+0200 (FLE Standard Time)