Android examples for java.lang:Math Geometry
is Point In Circle
//package com.java2s; public class Main { public static boolean isPointInCircle(float sx, float sy, float r, float x, float y) { return Math.sqrt((sx - x) * (sx - x) + (sy - y) * (sy - y)) < r; }/*from w ww . java 2 s . co m*/ }