Esempio n. 1
0
        public static CoordRectangle From(CoordPoint p, int length, int width)
        {
            CoordRectangle rect = new CoordRectangle(p.x, p.y, p.x + length, p.y + width);

            return(rect);
        }
Esempio n. 2
0
        public static CoordRectangle From(int x1, int y1, int length, int width)
        {
            CoordRectangle rect = new CoordRectangle(x1, y1, x1 + length, y1 + width);

            return(rect);
        }