Class: AxPolynomialMechanism

AxPolynomialMechanism(degree)

new AxPolynomialMechanism(degree)

Creates a new polynomial mechanism. This mechanism yields the result of a polynomial function
Parameters:
Name Type Description
degree Integer The degree of the polynomial
Source:

Methods

(static) GetDegreePropertyIndex(degree) → {Integer}

Gets the index of the property for the factor of the respective degree in the polynomial
Parameters:
Name Type Description
degree Integer The degree of the polynomial for whose factor to get the property for
Source:
Returns:
The index of the property for the factor of the respective degree in the polynomial
Type
Integer

DeserializeChunk(reader) → {Boolean}

Reads the data of a chunk. The chunk header is already read by the reader and this method deserializes the contents of the chunk. Called continuously for each of the resource's chunks. Override to read chunks of resource-specific data
Parameters:
Name Type Description
reader AxHierarchyStreamReader Reader to use for reading the serialized data.
Source:
Returns:
True if a chunk was successfully deserialized
Type
Boolean

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

SerializeChunks(writer)

Writes chunks for all the data which is needed to serialize the resource. Can be overridden by child resources to serialize their implementation-specific data
Parameters:
Name Type Description
writer AxHierarchyStreamWriter Writer to use for writing the serialization data
Source:

SetDegree(degree)

Sets the degree of the polynomial
Parameters:
Name Type Description
degree Integer the degree of the polynomial
Source:

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