Exemple #1
0
 /// <summary>
 /// Hàm khởi tạo các giá trị cho hàm số.
 /// </summary>
 public Function()
 {
     this.functionString  = null;
     this.typeOfFunction  = PixelsGraph.LoaiHam.Undefined;
     this.functionForm    = DangHam.NonAbs;
     this.values          = null;
     this.colorOfFunction = Color.Empty;
 }
Exemple #2
0
 /// <summary>
 /// Hàm khởi tạo các giá trị cho hàm số.
 /// </summary>
 /// <param name="FunctionString">Chuỗi thể hiện cho phương trình hàm số.</param>
 /// <param name="color">Màu sắc của hàm số.</param>
 /// <param name="type">Kiểu hàm số.</param>
 /// <param name="form">Dạng hàm số.</param>
 /// <param name="discontinuited">Nếu hàm số là đường thẳng (hàm số bậc nhất),
 /// biến thể hiện đường thẳng có phải là đứt nét hay không.
 /// Lưu ý: biến chỉ nhận giá trị truyền vào nếu hàm số là đường thẳng (hàm bậc nhất).</param>
 /// <param name="values">Các thông số của hàm số.</param>
 public Function(Color color, LoaiHam type, DangHam form, bool discontinuited,
                 string note, params float[] values)
 {
     this.functionString  = Function.Format(type, values);
     this.typeOfFunction  = type;
     this.functionForm    = form;
     this.note            = note;
     this.values          = values;
     this.colorOfFunction = color;
 }