JugiMap Framework
Easing Class Reference

The Easing struct defines interpolation methods used for obtaining values between a start value and an end value. It is used in timeline animations and tweens. More...

#include <jmCommon.h>

Public Types

enum  Kind : int {
  LINEAR = 0, EASE_START = 1, EASE_END = 2, EASE_START_END = 3,
  CONSTANT = 4
}
 The kind of Easing. More...
 

Public Member Functions

float GetValue (float p)
 Returns an ouput value according to the Easing::Kind. The given parameter p must be in range from 0.0 to 1.0. More...
 

Detailed Description

The Easing struct defines interpolation methods used for obtaining values between a start value and an end value. It is used in timeline animations and tweens.

Member Enumeration Documentation

◆ Kind

enum Kind : int
strong

The kind of Easing.

Enumerator
LINEAR 

Linear transition from the start value to the end value.

EASE_START 

Ease-out from the start value (quadratic interpolation).

EASE_END 

Ease-in into the end value.

EASE_START_END 

Ease-out from the start value and ease-in into the end value.

CONSTANT 

Constant value; the same as the start value.

Member Function Documentation

◆ GetValue()

float GetValue ( float  p)

Returns an ouput value according to the Easing::Kind. The given parameter p must be in range from 0.0 to 1.0.


The documentation for this class was generated from the following files: