public override double Get(double x, double y) { double m_ax = tx == null ? 0 : tx.Get(x, y); double m_ay = ty == null ? 0 : ty.Get(x, y); return(Source.Get(x + m_ax, y + m_ay)); }
public override double Get(double x, double y) { double control = Source.Get(x, y); double low = Low_m == null ? Low_d : Low_m.Get(x, y); double high = High_m == null ? High_d : High_m.Get(x, y); if (Falloff > 0.0) { if (control < (Threshold - Falloff)) { return(low); } else if (control > (Threshold + Falloff)) { return(high); } else { double lower = Threshold - Falloff; double upper = Threshold + Falloff; double blend = Helper.Quintic_Blend((control - lower) / (upper - lower)); return(Helper.Lerp(blend, low, high)); } } else { if (control < Threshold) { return(low); } else { return(high); } } }
private double Add_Get(double x, double y) { return(Source.Get(x, y) + _source2.Get(x, y)); }