Klasse BezierEasing

java.lang.Object
de.luckymcdev.foundryengine.common.easing.Easing
de.luckymcdev.foundryengine.common.easing.BezierEasing

public class BezierEasing extends Easing
A utility for Cubic Bézier easings. This complements the standard Robert Penner equations in the Easing class. For custom ones, use cubic-bezier.com
  • Felddetails

  • Konstruktordetails

    • BezierEasing

      public BezierEasing(String name, float x1, float y1, float x2, float y2)
      Creates a new Cubic Bezier easing. The points (0,0) and (1,1) are assumed as start and end.
      Parameter:
      name - Unique name for the registry
      x1 - Control point 1 X (0-1 range)
      y1 - Control point 1 Y
      x2 - Control point 2 X (0-1 range)
      y2 - Control point 2 Y
  • Methodendetails

    • ease

      public float ease(float value, float min, float max, float time)
      Beschreibung aus Klasse kopiert: Easing
      The basic function for easing.
      Angegeben von:
      ease in Klasse Easing
      Parameter:
      value - the time (either frames or in seconds/milliseconds)
      min - the beginning value
      max - the value changed
      time - the duration time
      Gibt zurück:
      the eased value