Table of Contents

Class InertiaAnimationBuilder

Namespace
Fantas
Assembly
Fantas.dll
public sealed class InertiaAnimationBuilder : Object
Inheritance
InertiaAnimationBuilder

Constructors

InertiaAnimationBuilder()

public InertiaAnimationBuilder()

InertiaAnimationBuilder(float, float, float)

public InertiaAnimationBuilder(float decelerationRatio, float velocityMaxLimit, float velocityMinLimit)

Parameters

decelerationRatio float
velocityMaxLimit float
velocityMinLimit float

Properties

ContentSize

Scrollable content size

public SizeF ContentSize { get; set; }

Property Value

SizeF

ViewportSize

Scrollable viewport size

public SizeF ViewportSize { get; set; }

Property Value

SizeF

Methods

CreateInertiaAnimation(Vector2, PointF)

Create a inertial animation that decelerate to zero

public Animation CreateInertiaAnimation(Vector2 velocity, PointF position)

Parameters

velocity Vector2
position PointF

Returns

Animation