question: public static boolean pointInRotatedRect ( float [ ] point , RectF bound , float rot ) { Matrix m = new Matrix ( ) ; float [ ] p = Arrays . copyOf ( point , 2 ) ; m . setRotate ( rot , bound . centerX ( ) , bound . centerY ( ) ) ; Matrix m0 = new Matrix ( ) ; if ( ! m . invert ( m0 ) ) return false ; m0 . mapPoints ( p ) ; return inclusiveContains ( bound , p [ 0 ] , p [ 1 ] ) ; }
target:  Checks if a given point is within a rotated rectangle.