Ejemplo n.º 1
0
		/// <summary>Returns the same range as Incl(num, num).</summary>
		public static NumRange<FPI8,MathFPI8> Only(FPI8 num)
		{
			return new NumRange<FPI8,MathFPI8>(num, num);
		}
Ejemplo n.º 2
0
		/// <summary>Returns a range from lo to hi that excludes hi by decreasing it by 1.</summary>
		public static NumRange<FPI8,MathFPI8> ExcludeHi(FPI8 lo, FPI8 hi)
		{
			return new NumRange<FPI8,MathFPI8>(lo, hi - 1);
		}
Ejemplo n.º 3
0
		/// <summary>Returns a range from lo to the MaxValue of the number type.</summary>
		public static NumRange<FPI8,MathFPI8> StartingAt(FPI8 lo)
		{
			return new NumRange<FPI8,MathFPI8>(lo, FPI8.MaxValue);
		}
Ejemplo n.º 4
0
		/// <summary>Returns a range from lo to hi that includes both lo and hi.</summary>
		public static NumRange<FPI8,MathFPI8> Inclusive(FPI8 lo, FPI8 hi)
		{
			return new NumRange<FPI8,MathFPI8>(lo, hi);
		}
Ejemplo n.º 5
0
 /// <summary>Returns the same range as Incl(num, num).</summary>
 public static NumRange <FPI8, MathFPI8> Only(FPI8 num)
 {
     return(new NumRange <FPI8, MathFPI8>(num, num));
 }
Ejemplo n.º 6
0
 /// <summary>Returns a range from lo to the MaxValue of the number type.</summary>
 public static NumRange <FPI8, MathFPI8> StartingAt(FPI8 lo)
 {
     return(new NumRange <FPI8, MathFPI8>(lo, FPI8.MaxValue));
 }
Ejemplo n.º 7
0
 /// <summary>Returns a range from lo to hi that excludes hi by decreasing it by 1.</summary>
 public static NumRange <FPI8, MathFPI8> ExcludeHi(FPI8 lo, FPI8 hi)
 {
     return(new NumRange <FPI8, MathFPI8>(lo, hi - 1));
 }
Ejemplo n.º 8
0
 /// <summary>Returns a range from lo to hi that includes both lo and hi.</summary>
 public static NumRange <FPI8, MathFPI8> Inclusive(FPI8 lo, FPI8 hi)
 {
     return(new NumRange <FPI8, MathFPI8>(lo, hi));
 }