Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.graphics.Point;
import android.graphics.PointF;

public class Main {
    public static PointF mapDisplayPointTo(PointF p, Point center) {
        return new PointF(p.x - center.x, center.y - p.y);
    }

    public static PointF mapDisplayPointTo(Point p, PointF center) {
        return new PointF(p.x - center.x, center.y - p.y);
    }

    public static PointF mapDisplayPointTo(Point p, Point center) {
        return new PointF(p.x - center.x, center.y - p.y);
    }

    public static PointF mapDisplayPointTo(PointF p, PointF center) {
        return new PointF(p.x - center.x, center.y - p.y);
    }
}