Ejemplo n.º 1
0
        //TODO use GeoCalc
        //public double Distance(GeoPoint other)
        //{
        //    //TODO check if shortest path between points crosses D/T line
        //    //TODO and recalculate
        //    var distance = this.ToPoint().Distance(other.ToPoint());
        //    return distance;
        //}
        //public double Angle(GeoPoint other)
        //{
        //    var angle = Vector(other).Angle;
        //    return angle;
        //}
        //public GeoVector Vector(GeoPoint other)
        //{
        //    var v = new GeoVector(this, other);
        //    return v;
        //}
        //public GeoPoint MidPoint(GeoPoint other)
        //{
        //    var point = this.ToPoint().MidPoint(other.ToPoint());
        //    return new GeoPoint(point);
        //}

        #region Comparasion Methods
        /// <summary>
        /// Calculates minimum geographic point from two geographic point
        /// </summary>
        public GeoPoint Min(GeoPoint other)
        {
            var point    = this.ToPoint().Min(other.ToPoint());
            var location = new GeoPoint(point);

            return(location);
        }
Ejemplo n.º 2
0
 public static GeoLocation ToGeoLocation(this GeoPoint geoPoint)
 {
     return(new GeoLocation(geoPoint.ToPoint()));
 }
Ejemplo n.º 3
0
 public GeoPathLocation(GeoPoint geoPoint) : base(geoPoint.ToPoint())
 {
     Bearing  = 0;
     Progress = 0;
     Distance = 0;
 }