From e914720b7a0f9220bf3048f02477ec4fb957c9e0 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 16 Apr 2015 14:28:59 -0400 Subject: [PATCH] ecere/sys/units: Taking out GeoPoint, WorldPoint, PolarPoint and NauticalMiles --- ecere/src/sys/units.ec | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/ecere/src/sys/units.ec b/ecere/src/sys/units.ec index f9999ab..086e662 100644 --- a/ecere/src/sys/units.ec +++ b/ecere/src/sys/units.ec @@ -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; -}; -- 1.8.3.1