[request] want java rectangle features for Region (union, intersection, intersects, contains)

Bug #905400 reported by RaiMan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

based on
https://github.com/sikuli/sikuli/issues/6

and the Java docs
http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html

these features for the class Region would be helpful:

--- return a new region or None
Region.union(Region)
Region.union(Location)
Region.intersection(Region)

--- return True or False
Region.contains(Region)
Region.intersects(Region)
Region.contains(Location)

Currently these features can be used by casting the Region object to a Java rectangle and back to a Region:

regUnion = Region(r0.getRect().union(r1.getRect()))

Tags: fkt-region
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
RaiMan (raimund-hocke)
tags: added: fkt-region
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.