Uses of Interface
cit244.util.Curve

Packages that use Curve
Package
Description
Math and utility helpers for graphics and animation.
  • Uses of Curve in cit244.util

    Classes in cit244.util that implement Curve
    Modifier and Type
    Class
    Description
    final class 
    An immutable mapping from one number range to another, optionally shaped by curves along the way.
    Fields in cit244.util declared as Curve
    Modifier and Type
    Field
    Description
    static final Curve
    Cubic ease-in: slower start, faster finish than quadratic.
    static final Curve
    Quadratic ease-in: slow start, fast finish.
    static final Curve
    Curve.LINEAR
    Returns the input unchanged.
    static final Curve
    Curve.PINGPONG
    Triangle wave: rises from 0 to 1 and falls back to 0, once per unit.
    static final Curve
    Curve.REPEAT
    Sawtooth wave: rises from 0 toward 1, then jumps back to 0, once per unit.
    static final Curve
    Curve.SINE
    Sine wave between 0 and 1, once per unit.
    static final Curve
    Starts gently, speeds up, then eases to a stop.
    Methods in cit244.util that return Curve
    Modifier and Type
    Method
    Description
    default Curve
    Curve.flipped()
    Rotates this curve 180 degrees around the point (0.5, 0.5), giving 1 - f(1 - t).
    default Curve
    Curve.inOut()
    Runs this curve at double speed for the first half, then its flipped version for the second half.
    default Curve
    Curve.then(Curve next)
    Runs this curve first, then feeds its result into next.
    Methods in cit244.util with parameters of type Curve
    Modifier and Type
    Method
    Description
    default Curve
    Curve.then(Curve next)
    Runs this curve first, then feeds its result into next.
    Mapping.through(Curve next)
    Adds a curve that shapes progress before it is scaled to the output range.