<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/Manhattan</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 09:06:37 GMT</pubDate>
<item>
<title>(JavaScript) Check if coordinates are adjacent - hellowouter</title>
<link>http://snipplr.com/view/64354/check-if-coordinates-are-adjacent/</link>
<description><![CDATA[ <p>This function returns true if the two sets of coordinates are neighbors and false if they ar not. The function easily determines whether they are neighbors by looking at the distance between the positions along both axes, also callled the Manhattan distance. The sum of the two distances must be exactly 1 if the positions are adjacent.

Note: the coordinates should be integers</p> ]]></description>
<pubDate>Wed, 04 Apr 2012 19:25:53 GMT</pubDate>
<guid>http://snipplr.com/view/64354/check-if-coordinates-are-adjacent/</guid>
</item>
</channel>
</rss>