DiscreteIntervalFromEndpoints Method

Instantiates a new discrete interval from the given endpoints.

Definition

Namespace: Meta.Numerics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static DiscreteInterval FromEndpoints(
	int a,
	int b
)

Parameters

a  Int32
One endpoint.
b  Int32
The other endpoint.

Return Value

DiscreteInterval
A discrete interval between the given endpoints.

Remarks

In order that width calculations always fit within a UInt32, we limit discrete intervals to the symmetric range of signed integers -MaxValue to +MaxValue. That is, the value MinValue is not allowed. This should almost never have a practical effect, unless you attempt to instantiate the full interval. For such a purpose, use Infinite instead.

See Also