Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}