System.Windows.Rect.Rect C# (CSharp) Method

Rect() public method

public Rect ( Point point1, Point point2 ) : System
point1 Point
point2 Point
return System
        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);
        }

Same methods

Rect::Rect ( Point location, Size size ) : System
Rect::Rect ( Size size ) : System
Rect::Rect ( double x, double y, double width, double height ) : System