Ejemplo n.º 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;
		}
Ejemplo n.º 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);
        }
Ejemplo n.º 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();
		}
Ejemplo n.º 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();
 }
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }