Basic Math



clip(target, prop, xmax[, xmin])

Clips the given array within the supplied limits

constant(target, value)

Places the given constant value into the target object

fraction(target, numerator, denominator)

Calculates the ratio between two values

invert(target, prop)

Inverts the given array

normalize(target, prop[, xmin, xmax])

Normalizes the given array between the supplied limits

product(target, props)

Calculates the product of multiple property values

scaled(target, prop, factor)

Scales an existing value by a factor.

summation(target[, props])

Sums the values in the given arrays