예제 #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);
		}
예제 #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);
		}
예제 #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);
		}
예제 #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);
		}
예제 #5
0
파일: Range.out.cs 프로젝트: dadhi/ecsharp
 /// <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));
 }
예제 #6
0
파일: Range.out.cs 프로젝트: dadhi/ecsharp
 /// <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));
 }
예제 #7
0
파일: Range.out.cs 프로젝트: dadhi/ecsharp
 /// <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));
 }
예제 #8
0
파일: Range.out.cs 프로젝트: dadhi/ecsharp
 /// <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));
 }