Example #1
0
        public Coords Intersect(Coords coords2)
        {
            this._rectangle.Intersect(coords2._rectangle);

            return(this);
        }
Example #2
0
 public Coords Union(Coords r)
 {
     return(new Coords(Rectangle.Union(this._rectangle, r._rectangle)));
 }
Example #3
0
        /*public override string ToString()
         *      {
         *              return new com.google.gson.Gson().toJson(this);
         *      }*/

        public bool IntersectsWith(Coords coords)
        {
            return(this._rectangle.IntersectsWith(coords._rectangle));
        }
 public override ICollection <Coords> prepare(ICollection <Coords> coordinates)
 {
     return(Coords.Intersect(this.screenshot.getCoordsToCompare(), Coords.setReferenceCoords(this.screenshot.getOriginShift(), new HashSet <Coords>(coordinates))));
 }