public Rect(Point point1, Point point2)
{
this._x = Math.Min(point1._x, point2._x);
this._y = Math.Min(point1._y, point2._y);
this._width = Math.Max((double)(Math.Max(point1._x, point2._x) - this._x), (double)0.0);
this._height = Math.Max((double)(Math.Max(point1._y, point2._y) - this._y), (double)0.0);
}