/// <summary> /// Create a right-bounded range that contains all elements less than or equal to the specified value. /// </summary> /// <param name="value">The value.</param> /// <returns>A new range.</returns> public static FInt32Range AtMost(int value) { return(new FInt32Range(FInt32RangeBound.Open(), FInt32RangeBound.Inclusive(value))); }
/// <summary> /// Create a right-bounded range that contains all elements less than the specified value. /// </summary> /// <param name="value">The value.</param> /// <returns>A new range.</returns> public static FInt32Range LessThan(int value) { return(new FInt32Range(FInt32RangeBound.Open(), FInt32RangeBound.Exclusive(value))); }
/// <summary> /// Create an unbounded (open) range that contains all elements of the domain. /// </summary> /// <returns>A new range.</returns> public static FInt32Range All() { return(new FInt32Range(FInt32RangeBound.Open(), FInt32RangeBound.Open())); }