コード例 #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = super.hashCode();
   result = prime * result + _interpolator.hashCode();
   return result;
 }
コード例 #2
0
 @Override
 public Double getValue(Double x, Double y, Double z) {
   Validate.notNull(x, "x");
   Validate.notNull(y, "y");
   Validate.notNull(z, "z");
   return _interpolator.interpolate(_dataBundle, new double[] {x, y, z});
 }
コード例 #3
0
 private void init() {
   _dataBundle =
       _interpolator.getDataBundle(
           getXDataAsPrimitive(),
           getYDataAsPrimitive(),
           getZDataAsPrimitive(),
           getValuesAsPrimitive());
 }
コード例 #4
0
 @Override
 public Double getValue(Triple<Double, Double, Double> xyz) {
   Validate.notNull(xyz, "xyz");
   Double x = xyz.getFirst();
   Validate.notNull(x, "x");
   Double y = xyz.getSecond();
   Validate.notNull(y, "y");
   Double z = xyz.getThird();
   Validate.notNull(z, "z");
   return _interpolator.interpolate(_dataBundle, new double[] {x, y, z});
 }