Region1
References[IoId("00000000-E7EB-4FFD-99EC-2EA9F2368B2C")]
public struct Region1 : IStorable, IEquatable<Region1>, IComparable<Region1>
A one-dimensional region, or set of intervals on the real number line.
Constructors
Properties
Methods
Contains
#Gets whether a specific value is inside the region intervals.
IntervalBoundaries
#Gets the lower and upper boundaries of the interval with the given index.
ValueAtLength
#Gets the value as measured from the start of the specified region interval. The length is only measured inside intervals.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Region1 | + | Region1 | Region1 | Create a union of two regions. |
| Region1 | + | double | Region1 | Shift all region intervals right by some distance. |
| Region1 | / | double | Region1 | Divide all region boundaries by some factor. |
| Region1 | * | double | Region1 | Multiply all region boundaries by some factor. |
| Region1 | - | Region1 | Region1 | Create a difference of two regions. |
| Region1 | - | double | Region1 | Shift all region intervals left by some distance. |
| - | Region1 | Region1 | Negate a Region1. | |
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | (double, double) | Region1 | ||
| implicit | (int, int) | Region1 | ||
| implicit | Interval | Region1 | ||