A simple Polygon collision with Rectangle Detection. get from jdk ,and modified for usability on android