Пример #1
0
		/// <summary>
		/// </summary>
		public static bool Parse(string start, string end, out NuGenPlotInterval result)
		{
			result = NuGenPlotInterval.Infinite;
			double bufferStart = 0.0;
			double bufferEnd = 0.0;
			bool parseSucceded = NuGenPlotInterval.Parse(start, out bufferStart) && NuGenPlotInterval.Parse(end, out bufferEnd);
			result.Start = bufferStart;
			result.End = bufferEnd;
			return parseSucceded;
		}
Пример #2
0
        /// <summary>
        /// </summary>
        public static bool Parse(string start, string end, out NuGenPlotInterval result)
        {
            result = NuGenPlotInterval.Infinite;
            double bufferStart   = 0.0;
            double bufferEnd     = 0.0;
            bool   parseSucceded = NuGenPlotInterval.Parse(start, out bufferStart) && NuGenPlotInterval.Parse(end, out bufferEnd);

            result.Start = bufferStart;
            result.End   = bufferEnd;
            return(parseSucceded);
        }
Пример #3
0
		private NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb, bool draw, NuGenFormula[] children, double param)
		{
			_formel = formel;
			_children = new NuGenFormulaCollectionBase();
			if (children != null)
				_children.AddRange(children);
			this._param = param;
			this._formulaElement = NuGenInterpreter.ParseInfixExpression(formel);
			this._interval = intervall;
			this.frb = frb;
			this._paintValidate = new NuGenPlotInterval(0.0, 0.0);
			this.draw = draw;
			_pth = new GraphicsPath();
			_pthasympt = new GraphicsPath();
		}
Пример #4
0
 private NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb, bool draw, NuGenFormula[] children, double param)
 {
     _formel   = formel;
     _children = new NuGenFormulaCollectionBase();
     if (children != null)
     {
         _children.AddRange(children);
     }
     this._param          = param;
     this._formulaElement = NuGenInterpreter.ParseInfixExpression(formel);
     this._interval       = intervall;
     this.frb             = frb;
     this._paintValidate  = new NuGenPlotInterval(0.0, 0.0);
     this.draw            = draw;
     _pth       = new GraphicsPath();
     _pthasympt = new GraphicsPath();
 }
Пример #5
0
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenFormula"/> class.
		/// </summary>
		public NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb, bool draw, double param)
			: this(formel, intervall, frb, draw, null, param)
		{
			this.isparam = true;
		}
Пример #6
0
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenFormula"/> class.
		/// </summary>
		public NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb)
			: this(formel, intervall, frb, true, null, 0.0)
		{
			this.isparam = false;
		}
Пример #7
0
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenFormula"/> class.
		/// </summary>
		public NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb, bool draw, NuGenFormula[] children)
			: this(formel, intervall, frb, draw, children, 0.0)
		{
			this.isparam = children == null;
		}
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NuGenFormula"/> class.
 /// </summary>
 public NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb, bool draw, double param)
     : this(formel, intervall, frb, draw, null, param)
 {
     this.isparam = true;
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NuGenFormula"/> class.
 /// </summary>
 public NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb)
     : this(formel, intervall, frb, true, null, 0.0)
 {
     this.isparam = false;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NuGenFormula"/> class.
 /// </summary>
 public NuGenFormula(string formel, NuGenPlotInterval intervall, Color frb, bool draw, NuGenFormula[] children)
     : this(formel, intervall, frb, draw, children, 0.0)
 {
     this.isparam = children == null;
 }