public override double GetValue(double t) { // Read the target t value from the lookup graph: t = XModule.GetValue(t); // Read at that point: return(SourceModule.GetValue(t)); }
/// <summary> /// Returns the output of the two source modules added together. /// </summary> public override double GetValue(double x, double y) { // Read coords: double lookX = (XModule == null)?0:XModule.GetValue(x, y); double lookY = (YModule == null)?0:YModule.GetValue(x, y); // Read: return(SourceModule.GetValue(lookX, lookY)); }
public override UnityEngine.Color GetColour(double x, double y) { // Read coords: double lookX = (XModule == null)?0:XModule.GetValue(x, y); double lookY = (YModule == null)?0:YModule.GetValue(x, y); // Read colour: return(SourceModule.GetColour(lookX, lookY)); }