Class PendulumAnimator
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
parentSkiaControlvalueUpdatedAction<double>
Properties
AirResistance
public double AirResistance { get; set; }
Property Value
Amplitude
public double Amplitude { get; set; }
Property Value
Gravity
public double Gravity { get; set; }
Property Value
InitialAngle
public double InitialAngle { get; set; }
Property Value
InitialVelocity
the higher the faster will stop
public double InitialVelocity { get; set; }
Property Value
IsOneDirectional
Returns absolute value, instead of going -/+ along the axis. Basically if true simulates bouncing.
public bool IsOneDirectional { get; set; }
Property Value
Methods
CreatePendulum()
protected virtual Pendulum CreatePendulum()
Returns
SetAmplitude(double)
public PendulumAnimator SetAmplitude(double value)
Parameters
valuedouble
Returns
Start(double)
public override void Start(double delayMs = 0)
Parameters
delayMsdouble
Stop()
public override void Stop()
TickFrame(long)
Time in NANOS
public override bool TickFrame(long frameTimeNanos)
Parameters
frameTimeNanoslong