Class
OrientedAnimation

Base class for all animation classes that have direction.

Definition

Constructors

OrientedAnimation()

Declaration

cs-api-definition
protected OrientedAnimation()

Properties

Direction

Gets or sets a value indicating whether the animated object is coming in or out of view.

Declaration

cs-api-definition
public AnimationDirection Direction { get; set; }

Property Value

AnimationDirection

Methods

GetValueDependingOnDirection<T>(T, T)

If the current Orientation of the animation is In, returns the inValue, otherwise - the outValue.

Declaration

cs-api-definition
protected T GetValueDependingOnDirection<T>(T valueIn, T valueOut)

Parameters

valueIn

T

The value to be returned if the current Direction is In.

valueOut

T

The value to be returned if the current Direction is Out.

Returns

T

If the current Orientation of the animation is In - the inValue, otherwise - the outValue.