Ejemplo n.º 1
0
		/// <summary>Returns the same range as Incl(num, num).</summary>
		public static NumRange<FPI16,MathFPI16> Only(FPI16 num)
		{
			return new NumRange<FPI16,MathFPI16>(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<FPI16,MathFPI16> ExcludeHi(FPI16 lo, FPI16 hi)
		{
			return new NumRange<FPI16,MathFPI16>(lo, hi - 1);
		}
Ejemplo n.º 3
0
		/// <summary>Returns a range from lo to the MaxValue of the number type.</summary>
		public static NumRange<FPI16,MathFPI16> StartingAt(FPI16 lo)
		{
			return new NumRange<FPI16,MathFPI16>(lo, FPI16.MaxValue);
		}
Ejemplo n.º 4
0
		/// <summary>Returns a range from lo to hi that includes both lo and hi.</summary>
		public static NumRange<FPI16,MathFPI16> Inclusive(FPI16 lo, FPI16 hi)
		{
			return new NumRange<FPI16,MathFPI16>(lo, hi);
		}
Ejemplo n.º 5
0
 /// <summary>Returns the same range as Incl(num, num).</summary>
 public static NumRange <FPI16, MathFPI16> Only(FPI16 num)
 {
     return(new NumRange <FPI16, MathFPI16>(num, num));
 }
Ejemplo n.º 6
0
 /// <summary>Returns a range from lo to the MaxValue of the number type.</summary>
 public static NumRange <FPI16, MathFPI16> StartingAt(FPI16 lo)
 {
     return(new NumRange <FPI16, MathFPI16>(lo, FPI16.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 <FPI16, MathFPI16> ExcludeHi(FPI16 lo, FPI16 hi)
 {
     return(new NumRange <FPI16, MathFPI16>(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 <FPI16, MathFPI16> Inclusive(FPI16 lo, FPI16 hi)
 {
     return(new NumRange <FPI16, MathFPI16>(lo, hi));
 }