<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1701,4 +1701,57 @@ Polyline.prototype.simplify = function(tolerance) {
 	this.points = reduced;
 };
 
+///////////////
+// Radius    //
+///////////////
+
+/**
+ * Creates a new radius object for drawing circles around a point, does a lot of initial calculation to increase load time
+ * @returns a new Radius
+ * @type Radius
+ * @constructor
+ * @classDescription Radius
+ * @param {Object} Center LatLonPoint of the radius
+ * @param {quality} Number of points that comprise the approximated circle (20 is a good starting point)
+ */
+var Radius = mxn.Radius = function(center, quality) {
+	this.center = center;
+	var latConv = center.latConv();
+	var lonConv = center.lonConv();
+
+	// Create Radian conversion constant
+	var rad = Math.PI / 180;
+	this.calcs = new Array();
+
+	for(var i = 0; i &lt; 360; i += quality)
+		this.calcs.push([Math.cos(i * rad) / latConv, Math.sin(i * rad) / lonConv]);
+}
+
+/**
+ * Returns polyline of a circle around the point based on new radius
+ * @param {Radius} radius
+ * @param {Colour} colour
+ * @returns {Polyline} Polyline
+ */
+Radius.prototype.getPolyline = function(radius, colour) {
+	var points = Array();
+
+	for(var i = 0; i &lt; this.calcs.length; i++){
+		var point = new LatLonPoint(
+			this.center.lat + (radius * this.calcs[i][0]),
+			this.center.lon + (radius * this.calcs[i][1])
+		);
+		points.push(point);
+	}
+
+	// Add first point
+	points.push(points[0]);
+
+	var line = new Polyline(points);
+	line.setColor(colour);
+
+	return line;
+};
+
+
 })();
\ No newline at end of file</diff>
      <filename>source/mxn.core.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b505e406238554531312a8bb2db67eb950ca4fef</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Turner</name>
    <email>andrew@highearthorbit.com</email>
  </author>
  <url>http://github.com/mapstraction/mxn/commit/f4df7bc1520e4c919b48b74761f01ffdcbef2379</url>
  <id>f4df7bc1520e4c919b48b74761f01ffdcbef2379</id>
  <committed-date>2009-10-03T11:11:56-07:00</committed-date>
  <authored-date>2009-10-03T11:11:56-07:00</authored-date>
  <message>Added back in the Radius helper class</message>
  <tree>da02f3c411de50b9739e5999dafbc978b42f8e0a</tree>
  <committer>
    <name>Andrew Turner</name>
    <email>andrew@highearthorbit.com</email>
  </committer>
</commit>
