Android examples for Graphics:Rectangle
is Point Inside Rect
//package com.java2s; import android.graphics.RectF; public class Main { public static boolean isPointInsideRect(float x, float y, RectF rect) { return x > rect.left && x < rect.right && y > rect.top && y < rect.bottom; }// ww w. j a va 2 s. com }