Skip to main content

TryInterpolate Method

Attempts to interpolate between two transform operations.

Definition

Namespace: Avalonia.Media.Transformation
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool TryInterpolate(
TransformOperation? from,
TransformOperation? to,
double progress,
ref TransformOperation result
)

Parameters

  Nullable(TransformOperation)
Source operation.
  Nullable(TransformOperation)
Target operation.
  Double
Interpolation progress.
  TransformOperation
Interpolation result that will be filled in when operation was successful.

Return Value

Boolean

Remarks

Based upon https://www.w3.org/TR/css-transforms-1/#interpolation-of-transform-functions.

See Also

Reference

TransformOperation Structure
Avalonia.Media.Transformation Namespace