Table of Contents

Class SpringWithVelocityVectorAnimator

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class SpringWithVelocityVectorAnimator : SkiaVectorAnimator, ISkiaAnimator, IDisposable
Inheritance
SpringWithVelocityVectorAnimator
Implements
Inherited Members
Extension Methods

Constructors

SpringWithVelocityVectorAnimator(IDrawnBase)

public SpringWithVelocityVectorAnimator(IDrawnBase parent)

Parameters

parent IDrawnBase

Properties

Parameters

public SpringTimingVectorParameters Parameters { get; set; }

Property Value

SpringTimingVectorParameters

Methods

Initialize(Vector2, Vector2, Vector2, Spring, float)

public void Initialize(Vector2 restOffset, Vector2 position, Vector2 velocity, Spring spring, float thresholdStop = 0.5)

Parameters

restOffset Vector2
position Vector2
velocity Vector2
spring Spring
thresholdStop float

UpdateValue(long, long)

Update mValue using time distance between rendered frames. Return true if anims is finished.

protected override bool UpdateValue(long deltaT, long deltaFromStart)

Parameters

deltaT long
deltaFromStart long

Returns

bool