Exemplo n.º 1
0
    private void findCorners()
    {
        mapRectangle = new MapRectangle();

        MyPoint SW_Mercator = new MyPoint(centerMercator.x - widthMercatorX / 2.0f, centerMercator.y - heightMercatorY / 2.0f);

        MyPoint NE_Mercator     = new MyPoint(centerMercator.x + widthMercatorX / 2.0f, centerMercator.y + heightMercatorY / 2.0f);
        MyPoint mapCenterMeters = new MyPoint(gameObject.transform.position.x, gameObject.transform.position.z);

        mapRectangle.setCorners(SW_Mercator, NE_Mercator, mapCenterMeters);
    }