Normalized master locations in the model
A list of axis tags defining the order of axes
Interpolate a value at a given location from pre-fetched deltas.
A normalized location to interpolate at
A set of deltas returned from getDeltas
The interpolated value
Interpolate a set of values from pre-fetched deltas and scalars. This is useful if you need to interpolate multiple values at the same location.
A set of deltas returned from getDeltas @param scalars A set of support scalars returned from getScalars`
The interpolated value, or null if no contribution
Interpolate a value at a given location from master values.
A normalized location to interpolate at
A set of master values
The interpolated value
Interpolate a value from master values and pre-fetched scalars. This is useful if you need to interpolate multiple values at the same location.
A set of master values
A set of support scalars returned from getScalars
The interpolated value
Interpolate from values and scalars coefficients.
If the values are master-values, then the scalars should be fetched from getMasterScalars().
If the values are deltas, then the scalars should be fetched from getScalars(); in which case this is the same as interpolateFromDeltasAndScalars().
Values to interpolate (either master values or deltas)
Scalars in the same order as values
The interpolated value, or null if no contribution
Compute the deltas for a set of master values.
A value, at each master location
A list of deltas to be applied
Return multipliers for each master, for the given location.
If interpolating many master-values at the same location, this function allows speed up by fetching the scalars once and using them with interpolateFromValuesAndScalars().
Note that the scalars used in interpolateFromMastersAndScalars() are not the same as the ones returned here. They are the result of getScalars().
A normalized location
Scalars for each master in the original input order
Compute the support scalars for a given location.
A normalized location
Fetch a submodel for a subset of axes.
A VariationModel represents an OpenType variation model for a set of masters at specific locations. It is used to compute deltas, scalars, and interpolated values for arbitrary locations.
Example