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 {
    public static PointF centerPoint(PointF p1, PointF p2) {
        PointF p = new PointF();
        p.x = (float) ((p1.x + p2.x) / 2.0);
        p.y = (float) ((p1.y + p2.y) / 2.0);
        return p;
    }
}