Struct Range<T>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: AssetRipper.Numerics.dll
Syntax
public readonly struct Range<T>
where T : IComparable<T>, IEquatable<T>
Type Parameters
Constructors
|
Improve this Doc
View Source
Range(T, T)
Declaration
public Range(T start, T end)
Parameters
Type |
Name |
Description |
T |
start |
|
T |
end |
|
Properties
|
Improve this Doc
View Source
End
Represents the exclusive end of the Range.
Declaration
public readonly T End { get; }
Property Value
|
Improve this Doc
View Source
Start
Represents the inclusive start of the Range.
Declaration
public readonly T Start { get; }
Property Value
Methods
|
Improve this Doc
View Source
CanUnion(Range<T>)
Declaration
public readonly bool CanUnion(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CanUnion(Range<T>, out Range<T>)
Declaration
public readonly bool CanUnion(Range<T> other, out Range<T> union)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Range<T> |
union |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Contains(T)
Declaration
public readonly bool Contains(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Contains(Range<T>)
Declaration
public readonly bool Contains(Range<T> range)
Parameters
Type |
Name |
Description |
Range<T> |
range |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Range<T>)
Declaration
public readonly bool Equals(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Intersects(Range<T>)
Declaration
public readonly bool Intersects(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Intersects(Range<T>, out Range<T>)
Declaration
public readonly bool Intersects(Range<T> other, out Range<T> intersection)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Range<T> |
intersection |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsStrictlyGreater(Range<T>)
Declaration
public readonly bool IsStrictlyGreater(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsStrictlyLess(Range<T>)
Declaration
public readonly bool IsStrictlyLess(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MakeIntersection(Range<T>)
Declaration
public readonly Range<T> MakeIntersection(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
Range<T> |
|
|
Improve this Doc
View Source
MakeUnion(Range<T>)
Declaration
public readonly Range<T> MakeUnion(Range<T> other)
Parameters
Type |
Name |
Description |
Range<T> |
other |
|
Returns
Type |
Description |
Range<T> |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Equality(Range<T>, Range<T>)
Declaration
public static bool operator ==(Range<T> left, Range<T> right)
Parameters
Type |
Name |
Description |
Range<T> |
left |
|
Range<T> |
right |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(Range<T>, Range<T>)
Declaration
public static bool operator !=(Range<T> left, Range<T> right)
Parameters
Type |
Name |
Description |
Range<T> |
left |
|
Range<T> |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
IEquatable<>