Windows.Foundation.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)
        {
            _x = (float)Math.Min(point1.X, point2.X);
            _y = (float)Math.Min(point1.Y, point2.Y);

            _width = (float)Math.Max(Math.Max(point1.X, point2.X) - _x, 0);
            _height = (float)Math.Max(Math.Max(point1.Y, point2.Y) - _y, 0);
        }

Same methods

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