001 package railo.runtime.img.interpolation; 002 003 public class Hermite implements Interpolation { 004 public double f(double x) { 005 if (x < 0.0) 006 x = -x; 007 if (x < 1.0) 008 return (2.0 * x - 3.0) * x * x + 1.0; 009 return 0.0; 010 } 011 012 public double getSupport() { 013 return 1.0; 014 } 015 }