private Point2F _mPoint; // = new Point2F(0, 0); /// <summary> /// Creates RectF from string /// </summary> /// <param name="r"></param> public RectF(string r) { string[] vals = r.Split(' '); _mExtent = new Point2F(vals[2].AsFloat(), vals[3].AsFloat()); _mPoint = new Point2F(vals[0].AsFloat(), vals[1].AsFloat()); _mExtent.OnChangeNotification += __OnChangeNotification; _mPoint.OnChangeNotification += __OnChangeNotification; }
/// <summary> /// Constructor /// </summary> /// <param name="point"></param> /// <param name="extent"></param> public RectF(Point2F point, Point2F extent) { _mPoint = point; _mPoint.DetachAllEvents(); _mExtent = extent; _mExtent.DetachAllEvents(); _mExtent.OnChangeNotification += __OnChangeNotification; _mPoint.OnChangeNotification += __OnChangeNotification; }
/// <summary> /// Return the integer character code value corresponding to the first character in the given string. /// ) /// /// </summary> public Point2F dnt_testcase_7(Point2F chr) { return new Point2F(m_ts.fn_dnt_testcase_7(chr.AsString())); }