class MAGES::AnimationUtilities

Overview

Utilities for animating objects and modifying animation clips. More…

class AnimationUtilities
{
public:
    // methods

    static float EaseInSine(float t);
    static float EaseOutSine(float t);
    static float EaseInCubic(float t);
    static float EaseOutCubic(float t);
    static float EaseOutQuint(float t);
    static float Map(float a1, float a2, float b1, float b2, float x);
};

Detailed Documentation

Utilities for animating objects and modifying animation clips.

Methods

static float EaseInSine(float t)

Converts a t value [0, 1] to a value [0, 1] using the ease in sine function.

Parameters:

t

The input time.

Returns:

The modified t value.

static float EaseOutSine(float t)

Converts a t value [0, 1] to a value [0, 1] using the ease out sine function.

Parameters:

t

The input time.

Returns:

The modified t value.

static float EaseInCubic(float t)

Converts a t value [0, 1] to a value [0, 1] using the ease in cubic function.

Parameters:

t

The input time.

Returns:

The modified t value.

static float EaseOutCubic(float t)

Converts a t value [0, 1] to a value [0, 1] using the ease out cubic function.

Parameters:

t

The input time.

Returns:

The modified t value.

static float EaseOutQuint(float t)

Converts a t value [0, 1] to a value [0, 1] using the ease out quint function.

Parameters:

t

The input time.

Returns:

The modified t value.

static float Map(float a1, float a2, float b1, float b2, float x)

Maps a value from one range to another.

Parameters:

a1

Input range minimum.

a2

Input range maximum.

b1

Output range minimum.

b2

Output range maximum.

x

T value.

Returns:

The mapped T value.