InRange Method
Determines if a value is in the specified range.
Definition
Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)
C#
public static bool InRange(double value, double lowerBound, double upperBound)
VB
Public Shared Function InRange (value As Double, lowerBound As Double, upperBound As Double) As Boolean
Parameters
- Double
- Real number that needs to be checked if in range.
- Double
- A real number representing a lower bound of the specified range.
- Double
- A real number representing an upper bound of the specified range.
Return Value
Boolean
True if value is in range; False otherwise.
Remarks
If lowerbound is larger than upperbound, their values are switched.