M_Rhino_RhinoMath_IsValidDouble - mcneel/rhinocommon-api-docs GitHub Wiki
Determines whether a Double value is valid within the RhinoCommon context. Rhino does not use Double.NaN by convention, so this test evaluates to true if:
x is not equal to RhinoMath.UnsetValue
System.Double.IsNaN(x) evaluates to false
System.Double.IsInfinity(x) evaluates to false
Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static bool IsValidDouble(
double x
)
VB
Public Shared Function IsValidDouble (
x As Double
) As Boolean
- x
- Type: System.Double
Double number to test for validity.
Type: Boolean
true if the number if valid, false if the number is NaN, Infinity or Unset.
Supported in: 5D58w