Beispiel #1
0
 public SerializedFunc(PolyFunc pf, string eps, string xMin, string xMax, string yMin, string yMax)
 {
     this.pf   = pf;
     this.eps  = eps;
     this.xMin = xMin;
     this.xMax = xMax;
     this.yMin = yMin;
     this.yMax = yMax;
 }
Beispiel #2
0
        public void Read(string fileName)
        {
            XmlSerializer deserializer = new XmlSerializer(typeof(SerializedFunc));

            using (TextReader textReader = new StreamReader(fileName))
            {
                SerializedFunc sf = (SerializedFunc)deserializer.Deserialize(textReader);
                this.pf   = sf.pf;
                this.eps  = sf.eps;
                this.xMin = sf.xMin;
                this.xMax = sf.xMax;
                this.yMax = sf.yMax;
                this.yMin = sf.yMin;
            }
        }
Beispiel #3
0
 public GoldenAxeEffect()
 {
     pf        = new PolyFunc();
     Solutions = new List <double>();
 }
Beispiel #4
0
 public void Clear()
 {
     pf = new PolyFunc();
     Solutions.Clear();
 }
Beispiel #5
0
 public CubicRubic()
 {
     pf        = new PolyFunc();
     Solutions = new List <double>();
 }