Code example for Region

Methods: contains

0
 
    /** 
     * {@inheritDoc}  
     */ 
    public boolean contains(float x, float y) {
        return mRegion.contains((int)x, (int)y);
    } 
 
    /** 
     * {@inheritDoc}  
     */ 
    public boolean contains(float x, float y, float width, float height) {
        Region tmpRegion = new Region();
        Region targetRegion = new Region((int)x, (int)y, (int)(width + x), (int)(height + y));
        tmpRegion.op(this.mRegion, targetRegion, Op.INTERSECT );
        return ! targetRegion.op(tmpRegion, Op.XOR);
    } 
 
    /** 
     * {@inheritDoc}  
Connect your IDE to all the code out there  Get Codota for Java