RepeaterBounds.AdjustForCyclicalBounds
Method
Description:
Shifts the input coordinates in the cyclical dimensions so that they fall in the [lower bounds, upper bounds] range.
Shifts the input coordinates in the cyclical dimensions so that they fall in the [lower bounds, upper bounds] range.
Remarks:
The coordinates must have the same number of dimensions as the bounds. This method does not apply to zero dimensional bounds.
The coordinates must have the same number of dimensions as the bounds. This method does not apply to zero dimensional bounds.
Parameters
| Parameter | Type | Description |
|---|---|---|
| coordinates | RepeaterCoordinates | The coordinates. |
Return Value
| Type | Description |
|---|---|
| RepeaterCoordinates | The adjusted coordinates. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The coordinates coordinates have incompatible number of dimensions. |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | The bounds must have at least one dimension. |