public iPoint(iPoint _ipoint) { iniParameter(_ipoint.Width_Position, _ipoint.Height_Position); }
/// <summary> /// Initialize the parameters of this object. /// </summary> /// <param name="_lt"></param> /// <param name="_rb"></param> /// <param name="_ols"></param> public void iniParameter(iPoint _lt, iPoint _rb, List<oneWidthLine> _ols) { Left_Top = new iPoint(_lt.Width_Position, _lt.Height_Position); Right_Bottom = new iPoint(_rb.Width_Position, _rb.Height_Position); OneLineSet = new List<oneWidthLine>(); _ols.ForEach(o => OneLineSet.Add(o)); }
public iLine(iPoint _lt, iPoint _rb, List<oneWidthLine> _ols) { iniParameter(_lt, _rb, _ols); }
/// <summary> /// Default constructor. /// </summary> public iLine() { Left_Top = new iPoint(); Right_Bottom = new iPoint(); OneLineSet = new List<oneWidthLine>(); }
/// <summary> /// Initialize the parameters of this object. /// </summary> /// <param name="_w"></param> /// <param name="_h"></param> private void iniParameter(iPoint _lt, iPoint _rb, List<iPoint> _pointSet) { LEFT_TOP = new iPoint(_lt.Width_Position, _lt.Height_Position); RIGHT_BOTTOM = new iPoint(_rb.Width_Position, _rb.Height_Position); POINT_SET = new List<iPoint>(); foreach (iPoint point in _pointSet) { POINT_SET.Add(new iPoint(point.Width_Position, point.Height_Position)); } }
public ConnectedComponent(iPoint _lt, iPoint _rb, List<iPoint> _pointSet) { iniParameter(_lt, _rb, _pointSet); }