Table of Contents

Class PendulumAnimator

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class PendulumAnimator : SkiaValueAnimator, ISkiaAnimator, IDisposable
Inheritance
PendulumAnimator
Implements
Derived
Inherited Members
Extension Methods

Constructors

PendulumAnimator(SkiaControl, Action<double>)

public PendulumAnimator(SkiaControl parent, Action<double> valueUpdated)

Parameters

parent SkiaControl
valueUpdated Action<double>

Properties

AirResistance

public double AirResistance { get; set; }

Property Value

double

Amplitude

public double Amplitude { get; set; }

Property Value

double

Gravity

public double Gravity { get; set; }

Property Value

double

InitialAngle

public double InitialAngle { get; set; }

Property Value

double

InitialVelocity

the higher the faster will stop

public double InitialVelocity { get; set; }

Property Value

double

IsOneDirectional

Returns absolute value, instead of going -/+ along the axis. Basically if true simulates bouncing.

public bool IsOneDirectional { get; set; }

Property Value

bool

Methods

CreatePendulum()

protected virtual Pendulum CreatePendulum()

Returns

Pendulum

SetAmplitude(double)

public PendulumAnimator SetAmplitude(double value)

Parameters

value double

Returns

PendulumAnimator

Start(double)

public override void Start(double delayMs = 0)

Parameters

delayMs double

Stop()

public override void Stop()

TickFrame(long)

Time in NANOS

public override bool TickFrame(long frameTimeNanos)

Parameters

frameTimeNanos long

Returns

bool