public Coords Intersect(Coords coords2) { this._rectangle.Intersect(coords2._rectangle); return(this); }
public Coords Union(Coords r) { return(new Coords(Rectangle.Union(this._rectangle, r._rectangle))); }
/*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)))); }