Class Interpolation3D

java.lang.Object
org.episteme.core.mathematics.analysis.interpolation.Interpolation3D

public class Interpolation3D extends Object
3D Interpolation methods.

Methods for interpolating values on a 3D grid.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • Interpolation3D

      public Interpolation3D()
  • Method Details

    • trilinear

      public static Real trilinear(Real x, Real y, Real z, Real c000, Real c100, Real c010, Real c110, Real c001, Real c101, Real c011, Real c111)
      Trilinear interpolation on a unit cube.

      Interpolates value at (x, y, z) where 0 invalid input: '<'= x, y, z invalid input: '<'= 1. Values at corners cXYZ (e.g., c000 is at (0,0,0), c100 is at (1,0,0)).

    • trilinear

      public static Real trilinear(Real x, Real y, Real z, Real x0, Real x1, Real y0, Real y1, Real z0, Real z1, Real v000, Real v100, Real v010, Real v110, Real v001, Real v101, Real v011, Real v111)
      Trilinear interpolation on an arbitrary rectangular prism.
      Parameters:
      x - target x
      y - target y
      z - target z
      x0 - x min
      x1 - x max
      y0 - y min
      y1 - y max
      z0 - z min
      z1 - z max
      v000 - value at (x0, y0, z0)
      v100 - value at (x1, y0, z0)
      v010 - value at (x0, y1, z0)
      v110 - value at (x1, y1, z0)
      v001 - value at (x0, y0, z1)
      v101 - value at (x1, y0, z1)
      v011 - value at (x0, y1, z1)
      v111 - value at (x1, y1, z1)
      Returns:
      interpolated value