Easing Class

Summary

A set of common easing functions.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["Easing"] class Type type-node

Syntax

public static class Easing

Remarks

There are several different types of functions:
  • In: accelerating from zero velocity.
  • Out: decelerating to zero velocity.
  • InOut: uses the corresponding In function until halfway, then the Out function after that.
  • Normalized: methods with a single parameter ( value) expect values from 0 to 1.
  • Ranged: methods with 3 parameters ( start, end, value) use the specified range instead ot 0 to 1.
  • Derivative: calculates the gradient of their corresponding non-derivative function. The more complex derivative functions were made with 'https://www.derivative-calculator.net'.

Fields

Name Constant Value Summary
FunctionCount 31
The total number of Animancer.Easing.Function values.
static
Ln2 0.6931472
The natural log of 2.
static

Methods

Name Value Summary
GetDelegate(Easing.Function) Func<float, float>
[Animancer Extension] Returns a cached delegate representing the specified `function` with a normalized range.
static