Class Interpolation3D
java.lang.Object
org.episteme.core.mathematics.analysis.interpolation.Interpolation3D
3D Interpolation methods.
Methods for interpolating values on a 3D grid.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Realtrilinear(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.static Realtrilinear(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.
-
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 xy- target yz- target zx0- x minx1- x maxy0- y miny1- y maxz0- z minz1- z maxv000- 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
-