Class Range
A range.
Inheritance
System.Object
Range
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:numl.Math
Assembly:numl.dll
Syntax
public class Range
Constructors
View SourceRange(Double)
Constructor taking only minimum value and creating slightly greated max.
Declaration
public Range(double min)
Parameters
Type | Name | Description |
---|---|---|
System.Double | min | The minimum. |
Range(Double, Double)
Constructor taking min and max vaue to create Range.
Declaration
public Range(double min, double max)
Parameters
Type | Name | Description |
---|---|---|
System.Double | min | The minimum. |
System.Double | max | The maximum. |
Properties
View SourceMax
Gets or sets the maximum.
Declaration
public double Max { get; }
Property Value
Type | Description |
---|---|
System.Double | The maximum value. |
Min
Gets or sets the minimum.
Declaration
public double Min { get; }
Property Value
Type | Description |
---|---|
System.Double | The minimum value. |
Methods
View SourceTest(Double)
Tests.
Declaration
public bool Test(double d)
Parameters
Type | Name | Description |
---|---|---|
System.Double | d | The double to process. |
Returns
Type | Description |
---|---|
System.Boolean | true if it succeeds, false if it fails. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()