Click or drag to resize

Interval.Contains Method (Double, IntervalType, IntervalType)

Determines whether a given point is contained in the interval, with the left and right endpoints separately specififed as closed or open.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public bool Contains(
	double x,
	IntervalType leftEndpointType,
	IntervalType rightEndpointType
)

Parameters

x
Type: System.Double
The point.
leftEndpointType
Type: Meta.Numerics.IntervalType
Specifier of whether the interval should be considered as including its left endpoint.
rightEndpointType
Type: Meta.Numerics.IntervalType
Specifier of whether the interval should be considered as including its right endpoint.

Return Value

Type: Boolean
true if x is contained in the interval as specified, otherwise false
See Also