ecere/sys/units: Taking out GeoPoint, WorldPoint, PolarPoint and NauticalMiles
authorJerome St-Louis <jerome@ecere.com>
Thu, 16 Apr 2015 18:28:59 +0000 (14:28 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:19:41 +0000 (20:19 -0400)
ecere/src/sys/units.ec

index f9999ab..086e662 100644 (file)
@@ -129,35 +129,3 @@ public class Distance      : double;
 public class Meters        : Distance { public property Distance {} };
 public class Centimeters   : Distance { public property Meters { set { return value * 100.0f;  } get { return this / 100.0f; } } };
 public class Feet          : Distance { public property Meters { set { return value / 0.3048f; } get { return this * 0.3048f; } } };
-public class NauticalMiles : Distance { public property Meters { set { return value / 1852; }    get { return this * 1852; } } };
-
-public struct WorldPoint
-{
-   NauticalMiles x, y;
-};
-
-public struct PolarPoint
-{
-   Degrees angle;
-   NauticalMiles distance;
-
-   property WorldPoint
-   {
-      set
-      {
-         angle = atan2(value.y, value.x);
-         distance = Distance { sqrt((double)(Distance)value.x * (Distance)value.x + (double)(Distance)value.y * (Distance)value.y) };
-      }
-
-      get
-      {
-         value.x = cos(angle) * distance;
-         value.y = sin(angle) * distance;
-      }
-   }
-};
-
-public struct GeoPoint
-{
-   Degrees lat, lon;
-};