Class Interval<T>
- Namespace
- FellowOakDicom.Imaging.Mathematics
- Assembly
- fo-dicom.core.dll
Represents an interval of double values
public class Interval<T> where T : INumber<T>
Type Parameters
T
- Inheritance
-
Interval<T>
- Inherited Members
- Extension Methods
Constructors
Interval(T, T)
public Interval(T min, T max)
Parameters
minTmaxT
Properties
Center
public T Center { get; }
Property Value
- T
Max
The upper bound of the interval
public T Max { get; }
Property Value
- T
Min
The lower bound of the interval
public T Min { get; }
Property Value
- T
Width
public T Width { get; }
Property Value
- T
Methods
Contains(T)
Returns true if the value is between Min and Max including the boundries
public bool Contains(T value)
Parameters
valueT