Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        /// <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));
        }
Esempio n. 3
0
        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));
        }