示例#1
0
 public static double[] GetValues(IPeriodicRange <double> range, int count)
 {
     if (range is LongitudeDegreeRange)
     {
         return(GetValues((LongitudeDegreeRange)range, count));
     }
     throw new NotImplementedException();
 }
示例#2
0
        public IPeriodicRange <double> Intersection(IPeriodicRange <double> other)
        {
            LongitudeDegreeRange result;

            if (other != null && TryIntersection(new LongitudeDegreeRange(other.Start, other.End), out result))
            {
                return(result);
            }
            return(null);
        }
示例#3
0
 public static double[] GetValues(IPeriodicRange<double> range, int count)
 {
     if (range is LongitudeDegreeRange)
         return GetValues((LongitudeDegreeRange)range, count);
     throw new NotImplementedException();
 }
示例#4
0
 [Pure] public bool Within(IPeriodicRange <double> r)
 {
     return(DefaultPeriodicOperations.Contains(r.Start, r.End, Start, End));
 }
示例#5
0
 [Pure] public bool Intersects(IPeriodicRange <double> r)
 {
     return(DefaultPeriodicOperations.Intersects(Start, End, r.Start, r.End));
 }