Package com.jme3.math

Class Easing.InOut

java.lang.Object
com.jme3.math.Easing.InOut
All Implemented Interfaces:
EaseFunction
Enclosing class:
Easing

public static class Easing.InOut extends Object implements EaseFunction
An Ease function composed of 2 sb function for custom in and out easing
  • Constructor Details

    • InOut

      public InOut(EaseFunction in, EaseFunction out)
      Instantiate a function that blends 2 pre-existing functions.
      Parameters:
      in - the function to use at value=0
      out - the function to use at value=1
  • Method Details

    • apply

      public float apply(float value)
      Specified by:
      apply in interface EaseFunction
      Parameters:
      value - a value from 0 to 1. Passing a value out of this range will have unexpected behavior.
      Returns:
      the blended value