Calculates the linear interpolation between two values.

lerp( from, to, step )

When step==0 the result is from, when step==1 the result is to. Partial values are linearly interpolated. Step values <0 and >1 are also supported.

The input supports a 1-4 component value for from and to. The result will be same size. step must always be a single value.

Location

Namespace
Fuse.Reactive
Package
Fuse.Reactive.Expressions 1.9.0

Interface of Lerp

Inherited from TernaryOperator

IsFirstOptional : bool uno

DEPRECATED: 2017-12-14 Use flags in constructor instead. These virtuals are only used if DeprecatedVirtualFlags specified, and only at initialization of subscription.

Inherited from ComputeExpression

Inherited from Expression

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces