M_Rhino_RhinoMath_IsValidSingle - mcneel/rhinocommon-api-docs GitHub Wiki
Determines whether a Single value is valid within the RhinoCommon context. Rhino does not use Single.NaN by convention, so this test evaluates to true if:
x is not equal to RhinoMath.UnsetValue,
System.Single.IsNaN(x) evaluates to false
System.Single.IsInfinity(x) evaluates to false
Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static bool IsValidSingle(
float x
)
VB
Public Shared Function IsValidSingle (
x As Single
) As Boolean
- x
- Type: System.Single
Single 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