Show / Hide Table of Contents

Class ValueAnimationExtentions

Extension methods for the value animations

Inheritance
System.Object
ValueAnimationExtentions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: AnimationHelpers
Assembly: cs.temp.dll.dll
Syntax
public static class ValueAnimationExtentions

Methods

CreateValueDurationAnimation(Color, Single, Color)

Create a value duration animation for the color.

Declaration
public static ValueDurationAnimation<Color> CreateValueDurationAnimation(this Color c, float duration, Color end)
Parameters
Type Name Description
Color c

The color

System.Single duration

Duration of the animation

Color end

The end value of the animation

Returns
Type Description
ValueDurationAnimation<Color>

A new ValueDurationAnimation

CreateValueDurationAnimation(Single, Single, Single)

Create a value duration animation for the float value.

Declaration
public static ValueDurationAnimation<float> CreateValueDurationAnimation(this float f, float duration, float end)
Parameters
Type Name Description
System.Single f

The float value

System.Single duration

Duration of the animation

System.Single end

The end value of the animation

Returns
Type Description
ValueDurationAnimation<System.Single>

A new ValueDurationAnimation

CreateValueDurationAnimation(Vector3, Single, Vector3)

Create a value duration animation for the vector

Declaration
public static ValueDurationAnimation<Vector3> CreateValueDurationAnimation(this Vector3 v, float duration, Vector3 end)
Parameters
Type Name Description
Vector3 v

The vector

System.Single duration

The animation duration in seconds

Vector3 end

The end value of the animation

Returns
Type Description
ValueDurationAnimation<Vector3>

A new ValueDurationAnimation

CreateValueSpeedAnimation(Color, Single, Color)

Create a value speed animation for the color The t value for the interpolation is calculated as follow:

travelTime * speed / travelDistance
Where the travelDistance is the Manhattan distance between c and end.

Declaration
public static ValueSpeedAnimation<Color> CreateValueSpeedAnimation(this Color c, float speed, Color end)
Parameters
Type Name Description
Color c

The color

System.Single speed

The speed of the animation.

Color end

The end value of the animation

Returns
Type Description
ValueSpeedAnimation<Color>

A new ValueSpeedAnimation

CreateValueSpeedAnimation(Single, Single, Single)

Create a value speed animation for the float value The t value for the interpolation is calculated as follow:

travelTime * speed / travelDistance
Where the travelDistance is the absolute difference between f and end
abs(f - end)
.

Declaration
public static ValueSpeedAnimation<float> CreateValueSpeedAnimation(this float f, float speed, float end)
Parameters
Type Name Description
System.Single f

The float value

System.Single speed

The speed of the animation.

System.Single end

The end value of the animation

Returns
Type Description
ValueSpeedAnimation<System.Single>

A new ValueSpeedAnimation

CreateValueSpeedAnimation(Vector3, Single, Vector3)

Create a value speed animation for the vector. The t value for the interpolation is calculated as follow:

travelTime * speed / travelDistance
Where the travelDistance is the Euclidean distance between v and end.

Declaration
public static ValueSpeedAnimation<Vector3> CreateValueSpeedAnimation(this Vector3 v, float speed, Vector3 end)
Parameters
Type Name Description
Vector3 v

The vector

System.Single speed

The speed of the animation.

Vector3 end

The end value of the animation

Returns
Type Description
ValueSpeedAnimation<Vector3>

A new ValueSpeedAnimation

Back to top Generated by DocFX