Giter Club home page Giter Club logo

mkad-coords's Introduction

mkad-coords

https://www.keene.edu/campus/maps/tool/

<?php

$coords = [
[37.842000, 55.774000],
[37.842000, 55.765000],
[37.842000, 55.755000],
[37.841000, 55.747000],
[37.841000, 55.739000],
[37.840000, 55.730000],
[37.839000,  55.721000],
[37.837000, 55.712000],
[37.832000,  55.703000],
[37.829000, 55.694000],
[37.831000, 55.685000],
[37.834000, 55.675000],
[37.837000, 55.667000],
[37.839000, 55.658000],
[37.833000, 55.650000],
[37.824000, 55.643000],
[37.814000, 55.637000],
[37.802000, 55.629000],
[37.794000, 55.623000],
[37.781000, 55.617000],
[37.771000, 55.611000],
[37.758000, 55.604000],
[37.747000, 55.599000],
[37.734000, 55.594000],
[37.723000, 55.589000],
[37.709000, 55.583000],
[37.696000, 55.578000],
[37.683000, 55.574000],
[37.668000, 55.571000],
[37.647000, 55.573000],
[37.633000, 55.573000],
[37.616000, 55.574000],
[37.601000,  55.575000],
[37.586000, 55.577000],
[37.571000, 55.581000],
[37.555000, 55.585000],
[37.545000, 55.587000],
[37.526000, 55.592000],
[37.516000, 55.594000],
[37.502000, 55.602000],
[37.493000,  55.609000],
[37.484000, 55.617000],
[37.474000, 55.625000],
[37.469000, 55.630000],
[37.456000, 55.641000],
[37.448000, 55.648000],
[37.441000, 55.654000],
[37.434000, 55.660000],
[37.425000,  55.670000],
[37.418000, 55.679000],
[37.414000, 55.686000],
[37.407000, 55.695000],
[37.397000, 55.702000],
[37.388000, 55.709000],
[37.383000, 55.718000],
[37.378000, 55.728000],
[37.374000, 55.735000],
[37.370000, 55.744000],
[37.369000, 55.754000],
[37.369000, 55.762000],
[37.369000, 55.771000],
[37.369000, 55.779000],
[37.372000, 55.789000],
[37.379000, 55.797000],
[37.386000, 55.805000],
[37.390000, 55.814000],
[37.393000, 55.823000],
[37.395000, 55.832000],
[37.394000, 55.840000],
[37.393000, 55.850000],
[37.397000, 55.858000],
[37.405000, 55.867000],
[37.416000, 55.872000],
[37.429000, 55.877000],
[37.443000, 55.881000],
[37.459000, 55.882000],
[37.473000, 55.884000],
[37.488000,  55.888000],
[37.501000,   55.894000],
[37.513000, 55.899000],
[37.527000, 55.905000],
[37.543000, 55.907000],
[37.559000, 55.909000],
[37.575000, 55.910000],
[37.590000, 55.909000],
[37.604000, 55.905000],
[37.619000, 55.901000],
[37.635000, 55.898000],
[37.647000, 55.896000],
[37.667000, 55.895000],
[37.681000, 55.894000],
[37.698000, 55.893000],
[37.712000, 55.889000],
[37.723000, 55.883000],
[37.735000, 55.877000],
[37.741000, 55.874000],
[37.764000, 55.862000],
[37.765000, 55.861000],
[37.788000, 55.850000],
[37.788000, 55.850000],
[37.800000, 55.844000],
[37.822000, 55.832000],
[37.829000, 55.828000],
[37.837000, 55.821000],
[37.838000, 55.811000],
[37.840000, 55.802000],
[37.840000, 55.793000],
[37.841000, 55.785000],
[37.842000, 55.774000],

];


foreach($coords as $key =>  $coord) {
    $xz = 37.6236248;
    $yz = 55.7520909;
    
    $x1 = $coord[0];
    $y1 = $coord[1];
    $d = -0.07; 
    $a = atan2($yz - $y1, $xz - $x1);


    $x2 = $x1 + $d*cos($a);
    $y2 = $y1 + $d*sin($a);

    echo "{$x2}, {$y2}\n";
}

echo "\n";
echo "\n";
echo "\n";
echo "\n";

foreach(array_reverse($coords) as $key =>  $coord) {
    $xz = 37.6236248;
    $yz = 55.7520909;
    
    $x1 = $coord[0];
    $y1 = $coord[1];
    $d = 0.07; 
    $a = atan2($yz - $y1, $xz - $x1);


    $x2 = $x1 + $d*cos($a);
    $y2 = $y1 + $d*sin($a);

    echo "{$x2}, {$y2}\n";
}

mkad-coords's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.