Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Point;

public class Main {
    public static Point getTileCoordFromPixCoord(Point point, int i) {
        int j = toScale(i);
        int g = point.x << j;
        int f = point.y << j;
        return new Point(g, f);
    }

    public static int toScale(int i) {
        return 23 - i;
    }
}