Java tutorial
//package com.java2s; import android.graphics.PointF; public class Main { private static boolean isOnCircle(PointF target, PointF base, float d) { float dx = target.x - base.x; float dy = target.y - base.y; return Math.sqrt(dx * dx + dy * dy) < d; } }