Constructors
Properties
MaxValue
#Methods
AdjacentTo
#Tests whether this range is adjacent to another.
Parameters:
| range (GH_IndexRange) | Range to test. |
Returns: True if the ranges are adjacent and not intersecting.
Contains
#Tests whether a specified range is entirely contained within this range.
Parameters:
| range (GH_IndexRange) | Range to test. |
Returns: True if the range is inside this one.
Contains
#Tests whether a specified index is defined by this range.
Parameters:
| index (int) | Index to test. |
Returns: True if the index is inside this range.
Intersection
#Create the intersection between two ranges.
Parameters:
| range0 (GH_IndexRange) | First range to intersect. |
| range1 (GH_IndexRange) | Second range to intersect. |
Returns: The intersection or an invalid range if the input doesn't intersect.
IntersectsWith
#Tests whether certain indices are described by both this and another range.
Parameters:
| range (GH_IndexRange) | Range to intersect with. |
Returns: True if the ranges intersect.
Split
#public static int Split(GH_IndexRange range, GH_IndexRange splitter, ref GH_IndexRange result0, ref GH_IndexRange result1)
Split a range into two using an integer index.
Parameters:
| range (GH_IndexRange) | Range to split. |
| splitter (GH_IndexRange) | Range to split with. |
| result0 (ref GH_IndexRange) | First split result if successful, or an invalid range if not. |
| result1 (ref GH_IndexRange) | Second split result if successful, or an invalid range if not. |
Returns: The number of valid split results.
Union
#Create a range which contains both input ranges.
Parameters:
| range0 (GH_IndexRange) | |
| range1 (GH_IndexRange) |
Returns: Smallest range big enough to contain both range0 and range1.