public readonly struct Interval : IEquatable<Interval>
Public Structure Interval
Implements IEquatable(Of Interval)
public value class Interval : IEquatable<Interval>
[<SealedAttribute>]
type Interval =
struct
inherit ValueType
interface IEquatable<Interval>
end
Use the static methods FromEndpoints(Double, Double), FromMidpointAndWidth(Double, Double), and FromEndpointAndWidth(Double, Double) to instantiate intervals.
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. |
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(Interval) | Tests wither the current instance is equal to another interval. |
Equals(Object) |
Tests whether a given object is equal to the current interval.
(Overrides ValueTypeEquals(Object)) |
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) |
Equality(Interval, Interval) | Tests whether two intervals are equal. |
Inequality(Interval, Interval) | Tests whether two intervals are not equal. |
Infinite | The entire number line. |
Semiinfinite | The number line from zero to positive infinity. |
Unit | The unit interval. |