InterpolationNode.Interpolation



Interpolation functions for use in an InterpolationNode.

Summary

Public companion properties

InterpolationNode.Interpolation

Inverse linear interpolation.

Cmn
InterpolationNode.Interpolation

Linear interpolation.

Cmn

Public functions

Version

Returns the minimum required Version for this Interpolation.

Cmn
open String
Cmn

Public companion properties

INVERSE_LERP

val INVERSE_LERPInterpolationNode.Interpolation

Inverse linear interpolation. Evaluates to 0 when the InterpolationNode.paramInput value is equal to the InterpolationNode.startInput value, and to 1 when the parameter is equal to the InterpolationNode.endInput value. Evaluates to null when the InterpolationNode.startInput and InterpolationNode.endInput values are equal.

LERP

val LERPInterpolationNode.Interpolation

Linear interpolation. Evaluates to the InterpolationNode.startInput value when the InterpolationNode.paramInput value is 0, and to the InterpolationNode.endInput value when the InterpolationNode.paramInput value is 1.

Public functions

calculateMinimumRequiredVersion

fun calculateMinimumRequiredVersion(): Version

Returns the minimum required Version for this Interpolation.

By default, decoding a androidx.ink.brush.BrushFamily containing an Interpolation with a minimum required version higher than Version.MAX_SUPPORTED will fail.

toString

open fun toString(): String