Interface EasingFunction

All Known Implementing Classes:
Easing, FixedValueEasingFunction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EasingFunction
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    ease(double x)
     
    default float
    ease(float x)
     
    default double
    easeClamped(double x)
     
    default float
    easeClamped(float x)
     
    default double
    lerp(double t, double a, double b)
     
    default net.minecraft.world.phys.Vec3
    lerp(double t, net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b)
     
    default float
    lerp(float t, float a, float b)
     
    default Vec3f
    lerp(float t, Vec3f a, Vec3f b)
     
  • Method Details

    • ease

      double ease(double x)
    • ease

      default float ease(float x)
    • easeClamped

      default double easeClamped(double x)
    • easeClamped

      default float easeClamped(float x)
    • lerp

      default double lerp(double t, double a, double b)
    • lerp

      default float lerp(float t, float a, float b)
    • lerp

      default net.minecraft.world.phys.Vec3 lerp(double t, net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b)
    • lerp

      default Vec3f lerp(float t, Vec3f a, Vec3f b)