类 InterpHelper

java.lang.Object
committee.nova.mods.avaritia.api.util.math.InterpHelper

public class InterpHelper extends Object
Name: Avaritia-forge / InterpHelper
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    float
    interpolate(float q0, float q1, float q2, float q3)
    Interpolates using the already computed coefficients.
    void
    locate(float x, float y)
    Computes the coefficients for the interpolation.
    void
    reset(float dx0, float dy0, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)
    Resets the interp helper with the given quad.
    void
    Call when you are ready to use the InterpHelper.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • InterpHelper

      public InterpHelper()
  • 方法详细资料

    • reset

      public void reset(float dx0, float dy0, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3)
      Resets the interp helper with the given quad. Does not care what order the vertices are in.
    • setup

      public void setup()
      Call when you are ready to use the InterpHelper.
    • locate

      public void locate(float x, float y)
      Computes the coefficients for the interpolation.
      参数:
      x - X interp location.
      y - Y interp location.
    • interpolate

      public float interpolate(float q0, float q1, float q2, float q3)
      Interpolates using the already computed coefficients.
      参数:
      q0 - Value at dx0 dy0
      q1 - Value at dx1 dy1
      q2 - Value at dx2 dy2
      q3 - Value at dx3 dy3
      返回:
      The result.