Code example for RectF

Methods: contains

0
     
    /** 
     * {@inheritDoc}  
     */ 
    public boolean contains(float x, float y) {
        return mRect.contains((int)x, (int)y);
    } 
     
    /** 
     * {@inheritDoc}  
     */ 
    public boolean contains(float x, float y, float width, float height) {
        return mRect.contains((int)x, (int)y, (int) (x + width), (int) (y + height));
    } 
     
    /** 
     * {@inheritDoc}  
     */ 
    public boolean contains(PointF point) {
        return mRect.contains(point.x, point.y);
    }