Interval Structure |
Namespace: Meta.Numerics
The Interval type exposes the following members.
Name | Description | |
---|---|---|
LeftEndpoint |
Gets the left (lower) endpoint of the interval.
| |
Midpoint |
Gets the mid-point of the interval.
| |
RightEndpoint |
Gets the right (upper) endpoint of the interval.
| |
Width |
Gets the width of the interval.
|
Name | Description | |
---|---|---|
ClosedContains |
Determines whether the argument lies in the closed interval.
| |
Contains(Double) |
Determines whether a given point is contained in the closed interval.
| |
Contains(Double, IntervalType) |
Determines whether a given point is contained in the closed or open interval.
| |
Contains(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.
| |
Equals(Object) |
Tests whether a given object is equal to the current interval.
(Overrides ValueTypeEquals(Object).) | |
Equals(Interval) |
Tests wither the current instance is equal to another interval.
| |
FromEndpointAndWidth |
Creates a new interval, given its lower endpoint and width.
| |
FromEndpoints |
Creates a new interval, given its endpoints.
| |
FromMidpointAndWidth |
Creates a new interval, given its midpoint and width.
| |
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
OpenContains |
Determines whether the argument lies in the open interval.
| |
ToString |
Produces a string representation of the interval.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
Tests whether two intervals are equal.
| |
Inequality |
Tests whether two intervals are not equal.
|
Use the static methods FromEndpoints(Double, Double), FromMidpointAndWidth(Double, Double), and FromEndpointAndWidth(Double, Double) to instantiate intervals.